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

Fix zoom handling on Map.TouchZoom #4340

Merged
merged 1 commit into from
Mar 22, 2016
Merged

Fix zoom handling on Map.TouchZoom #4340

merged 1 commit into from
Mar 22, 2016

Conversation

IvanSanchez
Copy link
Member

Should fix #3530.

The code in Map.TouchZoom needs to use the newly calculated zoom level (this._zoom, taking into account the bounceAtZoomLimits option) when projecting/unprojecting coordinates - if not, there will be some shaking (the more time between TouchEvents, the more shaking).

As @mourner said in #3530, firing zoom in L.Map._move is the least of evils.

mourner added a commit that referenced this pull request Mar 22, 2016
Fix zoom handling on Map.TouchZoom
@mourner mourner merged commit 73c8242 into master Mar 22, 2016
@mourner mourner deleted the bounce-touch branch March 22, 2016 07:29
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.

bounceAtZoomLimits=false prevents tiles from loading
2 participants