You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to handle a long press event on the marker, but the map also has a long press function that handles initiating a task. Unfortunately, when the marker is pressed, both long press events are fired (marker & map). I noticed a similar bug report earlier on Android but was closed due to it not being reproducible. Not sure if it was fixed in Android but iOS seems to cause this issue.
Expected behavior
I would like the long press to be fired only on the marker and not propagate to the map long press event.
Notes / preliminary analysis
I tried adding e.stopPropagation() but didn't work as planned and saw a comment stating it's not currently supported but maybe planned in the future. See second link in additional links and references.
Additional links and references
Noticed a similar bug report on android but this is happening on iOS: #2598
Mapbox Implementation
Mapbox
Mapbox Version
11.0.0
Platform
iOS
@rnmapbox/maps
version10.1.8
Standalone component to reproduce
Observed behavior and steps to reproduce
I am trying to handle a long press event on the marker, but the map also has a long press function that handles initiating a task. Unfortunately, when the marker is pressed, both long press events are fired (marker & map). I noticed a similar bug report earlier on Android but was closed due to it not being reproducible. Not sure if it was fixed in Android but iOS seems to cause this issue.
Expected behavior
I would like the long press to be fired only on the marker and not propagate to the map long press event.
Notes / preliminary analysis
I tried adding e.stopPropagation() but didn't work as planned and saw a comment stating it's not currently supported but maybe planned in the future. See second link in additional links and references.
Additional links and references
The text was updated successfully, but these errors were encountered: