Skip to content

Fix initial zoom level and pan with drag modifier#557

Merged
kurkle merged 1 commit intochartjs:masterfrom
kurkle:bugs
Jul 1, 2021
Merged

Fix initial zoom level and pan with drag modifier#557
kurkle merged 1 commit intochartjs:masterfrom
kurkle:bugs

Conversation

@kurkle
Copy link
Copy Markdown
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