Skip to content

pan with "shift + mouse scroll" #628

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

Open
LavaYasha opened this issue Mar 9, 2022 · 7 comments
Open

pan with "shift + mouse scroll" #628

LavaYasha opened this issue Mar 9, 2022 · 7 comments

Comments

@LavaYasha
Copy link

How can i implement this feature?

@LavaYasha
Copy link
Author

Or "horizontal scroll"

@stockiNail
Copy link
Contributor

I think you can set the modifierKey option.

Have a look to the doc: https://www.chartjs.org/chartjs-plugin-zoom/latest/guide/options.html#pan-options

@LavaYasha
Copy link
Author

I think you can set the modifierKey option.

Have a look to the doc: https://www.chartjs.org/chartjs-plugin-zoom/latest/guide/options.html#pan-options

modifierKey works perfectly, but I want to use mouse scroll wheel to move chart

@stockiNail
Copy link
Contributor

I want to use mouse scroll wheel to move chart

AFAIK the wheel can be use only for zooming.

@ThaJay
Copy link

ThaJay commented Mar 23, 2023

I can't seem to get scroll wheel to work with pan just with zoom, modifier keys or no.

@Luise8
Copy link

Luise8 commented Dec 22, 2023

So could you get this working? @LavaYasha

@mgmorcos
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants