-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Panning problems with iframed map in Chrome and Safari #1277
Comments
The problem has not returned, it was fixed in a way that you can click inside the map again to "unstuck" it. Unfortunately there's no way to get around it as the original frame's document doesn't receive mouseout if it is in an iframe, it's a browser problem, not Leaflet's. |
It's been discovered that |
That's interesting. I've also been considering making some form of a fake preventDefault for some events that only ignores them on the map, but does propagate them further out of the map container. This would also help with issues like mobile UI frameworks relying on document events. |
@jfirebaugh still works on it for a complete solution to the problem (continuing #1782), should be ready any minute now. |
Finally fixed in #1786 |
Demo here: http://interactivegraphics.ft-static.com/maps/abandoned-tube-stations/bug-demo/wrap.html
This is a very simple Leaflet map inside an iframe. Open it in Chrome or Safari, pan the map with the mouse, and release the mouse button outside the iframe. The map continues to pan as you move your mouse, even though you are no longer dragging.
This appears to have been reported and fixed before (#166), but it seems the problem has returned. My demo uses the latest stable Leaflet, 0.4.5. It has no other libraries or anything else that could conflict with it.
Tested and confirmed bug in Chrome 23 and 26, and Safari 6 (on OS X Mountain Lion).
Also tested in Firefox 17 and Opera 12 – bug does not occur in these browsers.
The text was updated successfully, but these errors were encountered: