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

Properly call onZoom & onZoomComplete when pinching #410

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

ccrisan
Copy link
Contributor

@ccrisan ccrisan commented Dec 6, 2020

When pinching (normally on mobile devices), currently the onZoomComplete callback is being called continuously while pinching. This PR ensures onZoom is called continuously while pinching and onZoomComplete is called when pinch ends.

I believe the problem (as well as the feature itself) has been introduced with #269.

This should fix the problem reported in #305.

@benmccann benmccann linked an issue Dec 7, 2020 that may be closed by this pull request
@benmccann benmccann merged commit 01d9342 into chartjs:master Dec 7, 2020
@kurkle kurkle added the bug label Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OnZoomCompleted not working properly on touch devices
3 participants