Skip to content
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

Wrong Calculation of ContainerPoint in Fancybox #1322

Closed
mfelsche opened this issue Jan 29, 2013 · 2 comments
Closed

Wrong Calculation of ContainerPoint in Fancybox #1322

mfelsche opened this issue Jan 29, 2013 · 2 comments

Comments

@mfelsche
Copy link

Reproduce: Open a Leaflet map inside a Fancybox (http://fancyapps.com/fancybox/) when the browser is scrolled down (window.scrollY > 0). Doubleclick on a position in the map, the map will zoom to another point window.scrollY pixels far down south than the position just clicked.

Think this issue is somewhere around l.1723ff in dist/leaflet-src.js:

mouseEventToContainerPoint: function (e) { // (MouseEvent)
    return L.DomEvent.getMousePosition(e, this._container);
},

A Minimum-example will be attached: https://gist.github.com/4664568

@mfelsche
Copy link
Author

This only affects Firefox 17/18, not current Safari or Chrome.

@joschka
Copy link

joschka commented Feb 9, 2013

see #1365

mourner added a commit that referenced this issue Feb 9, 2013
Fix viewport offset calculation in Firefox (fixes issue #1322)
@mourner mourner closed this as completed Feb 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants