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 zooms too fast in FF #1794
Comments
|
Yep, @jfirebaugh is now investigating that issue... |
|
@klimashkin can you run this and post the results along with what mouse hardware you have? |
|
OK |
ResultsUbuntu, FF 22, Trackpad (same with scroll mouse): Windows, FF 22, Mouse: MacOS, FF 22, Trackpad: MacOS, FF 22, Generic Scroll Mouse: MacOS, FF 22, Mighty Mouse: Ubuntu, Chromium, Trackpad (same with scroll mouse): MacOS, Chrome, Trackpad: MacOS, Safari, Mouse: MacOS, Chrome, Generic Scroll Mouse: MacOS, Chrome, Mighty Mouse: |
|
Firefox rocks! Different |
|
@klimashkin trackpad or mouse? |
|
Mouse, updated |
|
Update. Received such results on Windows 7, FF22: Mousewheel |
|
This is hitting us too. Windows 7, FF 21, Mouse. |
|
@jfirebaugh should we just revert the wheel change generally for now but add a preventDefault on it just for fixing the FF scrolling issue? |
|
Or maybe we should make another JSFiddle — gathering data for only FF but for all events (wheel, DOMMouseScroll and MozMousePixelScroll) at the same time. |
If you preventDefault on wheel you don't get any DOMMouseScroll events, so that won't work. So far it's looking like we'll need to divide deltaY by 3 when deltaMode=1. That will result in an even smaller value on MacOS, FF 22, Generic Scroll Mouse, but since the ceiling is taken anyway it shouldn't matter. |
|
Sounds good to me. It won't affect other browsers right? |
Not yet anyway. If other browsers start implementing "wheel" event that could change. Here's a fiddle that records all Firefox wheel-related data: http://jsfiddle.net/ydVda/1/ One thing I notice is that with a Mac trackpad, several "wheel" events can be dispatched before a DOMMouseScroll is dispatched. This agrees with the documentation: "A vertical DOMMouseScroll event in both event group if accumulated deltaY of consecutive wheel events become larger than 1.0 or less than -1.0". This implies several things:
|
|
This still affects me in Firefox 26.0 under Windows 8 with an IntelliMouse Explorer 3.0 - the Leaflet on the front page of the website jumps two or three zoom levels when using the wheel. Event log for a single up and down motion: Man, mouse-wheel events are just totally botched across browsers, sheeeesh... |
|
@mindplay-dk yeah, programming for scroll wheels and trackpads is such a pain... One more related issue: #2154 I'm going to completely rewrite the way zoom animations and scroll wheels work, stay tuned for updates in master in the following weeks. |
|
I find the otherwise excellent Magic Mouse scrolling very frustrating in Leaflet (e.g., on OpenStreetMap.org in Safari). Just trying to pan around the map causes many unintentional zooms in or out. Zooming often overshoots. Is this covered here, or should I open another bug? |
|
Has this issue been fixed? The zoom in/out is too sensitive |
|
@ganeshx can you try the master version? |
|
Sorry but that bug is back. Tested with Fire Fox 54.0.1 and Leaflet 1.1.0. Chrome works fine (v59.0.3071.115). |
|
@CramericaIndustries please open a new issue if you believe this is a bug in the current Leaflet release, it's highly unlikely it's related to this four year old issue. |
|
Root of the problem was that the Maybe this helps other poeple having the same issue. |
One mousewheel zooms page 3 times.
Leaflet 0.6, FF 22
The text was updated successfully, but these errors were encountered: