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 initial zoom level and pan with drag modifier #557

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Jul 1, 2021

  • On chart init, the getZoomLevel returned NaN because there were no original scale limits stored yet.
  • The modifier key for drag-to-zoom was looked from the wrong place

@kurkle kurkle added the bug label Jul 1, 2021
@kurkle kurkle merged commit ee4aebc into chartjs:master Jul 1, 2021
@kurkle kurkle added this to the 1.1.0 milestone Jul 1, 2021
@kurkle kurkle deleted the bugs branch July 4, 2021 10:24
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.

1 participant