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

Race condition when controlling via zoomTo / smoothZoom methods #88

Open
moltar opened this issue Apr 11, 2019 · 5 comments
Open

Race condition when controlling via zoomTo / smoothZoom methods #88

moltar opened this issue Apr 11, 2019 · 5 comments

Comments

@moltar
Copy link

moltar commented Apr 11, 2019

First pass I did while slowly clicking "zoom out" button. This works fine.

But if I click zoom out button rapidly, then some kind of jumping behavior can be seen.

I think maybe it's a race condition, where the first zoom out animation didn't finish yet, and the second one has started.

Demo video: http://take.ms/PpfAC

@anvaka
Copy link
Owner

anvaka commented Apr 17, 2019

Just to clarify, you are using smoothZoom(), correct?

@moltar
Copy link
Author

moltar commented Apr 17, 2019

Actually both give the same result if you click fast enough.

@anvaka
Copy link
Owner

anvaka commented Apr 18, 2019

I'm sorry, not sure I fully understand your comment. Which function do you use to zoom in?

@moltar
Copy link
Author

moltar commented Apr 18, 2019

Yes, smoothZoom.

@rbonomo
Copy link
Contributor

rbonomo commented May 9, 2019

Maybe related #99

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

No branches or pull requests

3 participants