Skip to content

Fixed zoom out on Windows 8 with Firefox#1575

Merged
mourner merged 1 commit intoLeaflet:masterfrom
cschwarz:patch-1
Apr 8, 2013
Merged

Fixed zoom out on Windows 8 with Firefox#1575
mourner merged 1 commit intoLeaflet:masterfrom
cschwarz:patch-1

Conversation

@cschwarz
Copy link
Copy Markdown
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
Copy Markdown
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