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
If using onDragEnd to only update the internal app state when dragging is done instead of onDrag to constantly update it, the marker jumps back to the initial position whenever <Marker> rerenders even if none of the props changed.
I think this should not use marker.getLngLat() for comparison because this is update during draging but should save and use the last passed position from the caller.
If using
onDragEnd
to only update the internal app state when dragging is done instead ofonDrag
to constantly update it, the marker jumps back to the initial position whenever<Marker>
rerenders even if none of the props changed.I think this should not use
marker.getLngLat()
for comparison because this is update during draging but should save and use the last passed position from the caller.react-map-gl/modules/react-maplibre/src/components/marker.ts
Lines 105 to 107 in 057d67a
The text was updated successfully, but these errors were encountered: