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
{{ message }}
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
This is a feature request for the ability to easily disable horizontal scrolling. It’s currently possible to do this by 1) restricting the bounds of the map (defining a northeast coordinate with a latitude of 90 and a southwest coordinate with a latitude of -90), but the scrolling behavior is not smooth. With this approach it’s necessary to swipe straight up and down or you bump into the east and west bounds.
It’s also possible to disable horizontal scrolling 2) using a custom UIPanGestureRecognizer. This proves challenging as it’s necessary to figure out how to gradually decrease the speed of the scroll to mimic the default scroll behavior.
It would be great to expose a simple option on the mapView for this behavior
This is a feature request for the ability to easily disable horizontal scrolling. It’s currently possible to do this by 1) restricting the bounds of the map (defining a northeast coordinate with a latitude of 90 and a southwest coordinate with a latitude of -90), but the scrolling behavior is not smooth. With this approach it’s necessary to swipe straight up and down or you bump into the east and west bounds.
It’s also possible to disable horizontal scrolling 2) using a custom
UIPanGestureRecognizer
. This proves challenging as it’s necessary to figure out how to gradually decrease the speed of the scroll to mimic the default scroll behavior.It would be great to expose a simple option on the mapView for this behavior
cc @captainbarbosa
Android equivalent: mapbox/mapbox-gl-native-android#105
The text was updated successfully, but these errors were encountered: