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

Add modifierKey option for drag-to-zoom #555

Merged
merged 4 commits into from
Jul 1, 2021
Merged

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Jun 30, 2021

Resolves: #535
Closes: #556

@Sean-Stellingwerff
Copy link

Sean-Stellingwerff commented Jun 30, 2021

Haha @kurkle, are you reading my mind?! I was working on the exact same feature today and noticed we have a similar solution. Great stuff, because I could really use this feature too 👍🏻

Seeing as I finished my implementation too and I noticed we had some differences, I decided to add my PR as well so we can compare them if needed or if it helps, and take the best of both. Whichever one is merged is fine by me!

@kurkle
Copy link
Member Author

kurkle commented Jun 30, 2021

Filename Size Change
dist/chartjs-plugin-zoom.esm.js 7.42 kB +60 B (+1%)
dist/chartjs-plugin-zoom.js 7.67 kB +61 B (+1%)
dist/chartjs-plugin-zoom.min.js 4.45 kB +24 B (+1%)

@kurkle kurkle requested a review from etimberg June 30, 2021 20:41
@kurkle kurkle merged commit 3ba323e into chartjs:master Jul 1, 2021
@kurkle kurkle deleted the drag-modifier branch July 1, 2021 05:11
@kurkle kurkle added this to the 1.1.0 milestone Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add modifierKey to drag options
3 participants