Skip to content

Conversation

joschka
Copy link

@joschka joschka commented Feb 9, 2013

document.body.scrollTop/Left is always 0 in Firefox, but document.documentElement.scrollTop/Left can be used instead.

Probably it was only forgotten to add, because L.DomEvent.getMousePosition does it right already (uses both).

mourner added a commit that referenced this pull request Feb 9, 2013
Fix viewport offset calculation in Firefox (fixes issue #1322)
@mourner mourner merged commit 3bb34f3 into Leaflet:master Feb 9, 2013
@mourner
Copy link
Member

mourner commented Feb 9, 2013

Nice catch, thanks!

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

Successfully merging this pull request may close these issues.

2 participants