If a user clicks, swipe scrolls on mobile, or interacts with the map in any way, the flyTo animation is canceled. How can I stop that?
Or at the very least, jump to the destination?
mapboxmapbox-gl
If a user clicks, swipe scrolls on mobile, or interacts with the map in any way, the flyTo animation is canceled. How can I stop that?
Or at the very least, jump to the destination?
Best Answer
On my mobile device, flyTo fails the instant my keyboard hides after geocoder input. It appears the onscreen keyboard display and hiding interferes with the flyTo animation. This workaround corrected my issue: