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
In the code example shared above you can see that there are two console logs in the onMapIdle function, the first one prints the whole map state and the second one is logged if the user gesture is active.
The code works in a sense that the event is invoked on every map idle, but the issue I noticed is that on Android devices the second log never appears in the console because isGestureActive is always false, regardless if the map has idled programatically or by user gesture.
On iOS this variable accurately reflects the state of the map interaction and both logs can be observed in the console after the user stops dragging the map.
Expected behavior
I would expect the same behaviour on Android as it is currently on iOS - the map state passed to the onMapIdle is always reflecting the current state of gesture interactions.
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered:
i have this issue too. i swipe the map fast , i get like lots of calls to onCameraChanged (normal) , many of them have "isGestureActive": false and others "isGestureActive": true
I can confirm this issue. I'm trying to switch from onRegionDidChange to onMapIdle but the isGestureActive is always false.
I don't have any workaround at this point.
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.74.1 (expo: 51.0.8)
Platform
Android
@rnmapbox/maps
version10.1.24
Standalone component to reproduce
Observed behavior and steps to reproduce
Bug description:
In the code example shared above you can see that there are two console logs in the
onMapIdle
function, the first one prints the whole map state and the second one is logged if the user gesture is active.The code works in a sense that the event is invoked on every map idle, but the issue I noticed is that on Android devices the second log never appears in the console because
isGestureActive
is always false, regardless if the map has idled programatically or by user gesture.On iOS this variable accurately reflects the state of the map interaction and both logs can be observed in the console after the user stops dragging the map.
Expected behavior
I would expect the same behaviour on Android as it is currently on iOS - the map state passed to the
onMapIdle
is always reflecting the current state of gesture interactions.Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: