-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Zoom function targeting is off (Leaflet 0.7 release, Chrome 32.0.1700.14m Aura) #2352
Comments
Looks like a bug in Chrome switches to the Aura release from the stable/production release automatically! I have tried to uninstall and the "stable" installer just keeps re-installing the Aura release. Well, that's my problem - but you may want to report the issue I described to the Chrome maintainers, as it looks like they did introduce a bug (?) in the Chrome beta-release; you may want to be proactive and bring this to their attention before this bug (if it is a bug in Chrome) makes it into the stable/production release... |
(also, it looks like others are affected and were - or will be - quietly "upgraded" from the stable release to this buggy beta-release, so this may be affecting Leaflet users now already.) |
mourner rewrote some code that may affect this in master. I've just reinstalled my PC and am still installing my apps again. |
Probably nothing to worry about since Stable and Canary work correctly, and bleeding edge bugs come and go. Will reopen if reproducible on a closer release. |
Nope, it's gone - for good... as much as I love supporting open source projects, Chrome beta has cost me too many hours of random issues and debugging phantom bugs, so I'm now running the stable release only... |
lol, good plan :) |
Shit, now the bug is in stable (while Canary still works), lol. Have to promise myself to always check beta versions. :( Will release a hotfix 0.7.2 tomorrow. |
Patched version here: http://leaflet-cdn.s3.amazonaws.com/build/leaflet-stable.zip |
I've replaced leaflet with the latest 0.7.2 version, but I'm still getting the buggy behavior in Chrome 32.0.1700.77 in Ubuntu. Have verified that it works fine in FireFox. A map initialized at zoom level 5 centered over SF, CA, jumps over to the east coast when zoomed, whereas in FF it stays centered around the mouse. |
Are you sure? Can you set up a JSFiddle? |
Forgive me, it appears ThreeJS was convoluting the issue. Working great, thanks for the latest version. |
The zoom function for some reason seems to be broken with the last release of Chrome - it isn't calculating the center of the zoom operation correctly, whether you use the mouse-wheel or double click, the point it's zooming to appears to be offset relative to the scroll offset of the page.
In case this is difficult to understand, I posted a video demonstrating the issue - I used some free tool to record this, and the frame rate isn't great, but pay attention to where the mouse is, and where the zoom operation goes to. As you can see, it works until I start dragging the scroll bar - in the video I'm dragging it a little bit first, to show that the vertical zoom target goes off by just a little bit, and then by a lot.
If the page is scrolled very far, the zoom operation goes completely ballistic (you don't see that in the video) and often zooms all the way out to maximum zoom with a single touch of the mouse-wheel.
This bug is currently repeatable on leafletjs.com home page (as you saw) and occurs on a site I am currently working on (locally).
The text was updated successfully, but these errors were encountered: