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

Fixed zoom out on Windows 8 with Firefox #1575

Merged
merged 1 commit into from
Apr 8, 2013
Merged

Conversation

cschwarz
Copy link
Contributor

@cschwarz cschwarz commented Apr 8, 2013

Firefox receives wheel delta of 0.33 on zoom in and -0.33 on zoom out, which turns into Math.ceil(0.33) == 1 and Math.round(-0.33) == 0. After this fix it returns correctly -1 for zooming out.
Worked fine before and after this fix in Chrome and Internet Explorer.

Firefox receives wheel delta of 0.33 on zoom in and -0.33 on zoom out, which turns into Math.ceil(0.33) == 1 and Math.round(-0.33) == 0. After this fix it returns correctly -1 for zooming out.
Worked fine before and after this fix in Chrome and Internet Explorer.
mourner added a commit that referenced this pull request Apr 8, 2013
Fixed zoom out on Windows 8 with Firefox
@mourner mourner merged commit ce96bd3 into Leaflet:master Apr 8, 2013
@mourner
Copy link
Member

mourner commented Apr 8, 2013

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