-
Notifications
You must be signed in to change notification settings - Fork 8.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
Mouse wheel / touchpad pinch support for map zoom #2645
Comments
I'm personally not a big fan of mouse-wheel to zoom on maps in which the map is not the only thing on the screen and in which a vertical scrollbar is possible in the browser window. The reason being that it becomes quite easily to accidentally zoom the map in if your cursor happens to be over it when try to scroll the page. The experience becomes even worse in a mobile environment where you can effectively get "stuck" in the map once it takes up the entire window. Mobile browsers will interpret the attempt at scroll as zoom, keeping the user from accessing controls above or below the map. I think the solution here would be to make double click on circles work correctly. |
I see your point, especially the one on mobile devices. It wouldn't be that difficult to implement a responsive map though (i.e.: a map whose zoom behaviour changes according to the type of device issuing the request), right? The double click doesn't struck me as a good fix for primarily two reasons:
For the time being, there are also another bunch of bugs (#1442, #1293 and #2054, among others) that make doble-clicking a far too common operation. I hold that mouse wheel is really the way to go, if for nothing else, because using the mouse wheel is pretty much the standard (Google maps, bing maps, Yahoo maps... they all use mouse wheel for zooming). However, if the Elasticsearch team is positively against this, a better solution to double clicking would be an overlay slider to drag around to zoom in/out, IMO. |
Even though this is much older, I'm going to close this issue in favor of the more recent #7778 since that one has more activity. |
The title says it all pretty much, I guess.
The rationale is that using an integrated mechanism to the pointer is much faster and intuitive than moving the pointer to a button, click, and then pan the map to adjust it in case the zoom was not properly centred.
Currently the map supports double-click, which is better than nothing, but it's a bit clumsy to use, both because is one-direction (zoom-in) only, and because it doesn't work if the desired area is covered by a marker (circle).
The text was updated successfully, but these errors were encountered: