-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring zoom speed/step #4723
Comments
I've found this varies by the pointer device/os a fair bit. For me it's the opposite the scroll wheel on the mouse is slow but the touchpad scroll is nice and fast. Perhaps in your UI you could hint your users to use Shift+drag a box to speed up zooming in? as a workaround for it being configurable. |
Also running into this. My experience is like Andrew's - with the touchpad it's easy to do a big swipe that zooms forever, whereas the wheel is much more work. It seems to be related to how much data is being displayed. An empty map scrolls in and out quickly, while a very heavy one feels like it's skipping scroll events. |
The title of this issue is about adding a configuration option. |
Current scrolling speed is way too low. Looking forward for this feature. |
Here are the constants that have to be made configurable: https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/handler/scroll_zoom.js#L19-L22 Adding a "good first issue" label — a PR would be welcome! You can see how handler options are implemented in other handlers like drag pan or drag rotate. |
Closed by #7863 🎉 |
Motivation
Zooming the map via scroll or double tap feels too slow most of the time. There is too much scrolling or double tapping to do. This is especially painful on devices with only touchpad.
Our use scenario has large fleet of assets that are situated around the globe. Users will often start with wide view of globe and then go into deep zoom levels to see more of the local context around specific asset. This process involves a lot of zooming in (and sometimes out too). It is common complaint for us that there is too much zooming to be done to get to desired level of zoom.
Design
Make zoom step/speed was configurable via map options or in the zoom handlers. At the moment it seems the scroll_zoom.js and dblclick_zoom.js use hard coded values instead of configurable values.
The text was updated successfully, but these errors were encountered: