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 the map jumping at the end of some transitions. #650

Merged
merged 2 commits into from
Dec 1, 2016

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Nov 22, 2016

Sometimes, when zooming, the map would jump at the end of the transition. This was caused by the zoom level reaching its final value, then a last animation frame firing, and asking to recenter the map when the center was already correct.

Sometimes, when zooming, the map would jump at the end of the transition.  This was caused by the zoom level reaching its final value, then a last animation frame firing, and asking to recenter the map when the center was already correct.
@manthey
Copy link
Contributor Author

manthey commented Nov 22, 2016

@aashish24 I think this was the problem you saw zooming with your laptop.

@codecov-io
Copy link

codecov-io commented Nov 22, 2016

Current coverage is 86.90% (diff: 100%)

Merging #650 into master will increase coverage by <.01%

@@             master       #650   diff @@
==========================================
  Files            87         87          
  Lines          8585       8586     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           7461       7462     +1   
  Misses         1124       1124          
  Partials          0          0          

Powered by Codecov. Last update 044144e...90d21ad

@aashish24
Copy link
Member

@manthey is this what could cause the issue on some systems (like mine)? I will give it a try.

@aashish24
Copy link
Member

@manthey seems to have fixed the issue! thanks. The code looks reasonable to me. How did you reproduce this bug on your system?

@manthey
Copy link
Contributor Author

manthey commented Dec 1, 2016

It happens much more rarely using a mouse wheel than you had with your track pad, but I noticed it on rare occasions, added some debug logging, and when it occurred, looked at what happened.

@manthey manthey merged commit 9f78282 into master Dec 1, 2016
@manthey manthey deleted the fix-transition-issue branch December 1, 2016 21:16
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.

3 participants