I've been trying to make some annotations drawn ab...
# compose
t
I've been trying to make some annotations drawn above a Compose Map long press draggable. What I tried was:
Copy code
Box
  GoogleMap.fullSize
  Canvas
    .fullSize
    .pointerInput { detectDragGesturesAfterLongPress(...) }
In this configuration, the Canvas eats ALL events, and none make it to the map below. But on accident, I just discovered that the following gives me the desired effect. But I really don't understand why:
Copy code
Box
  GoogleMap.fullSize
  Canvas
    .fullSize
    .pointerInteropFilter { false }
    .pointerInput { detectDragGesturesAfterLongPress(...) }
Can anyone help me understand this?
1