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

Use mouse wheel/trackpad scroll to pan the canvas instead of click and drag #664

Open
xiaopow opened this issue Jun 27, 2020 · 4 comments
Open

Comments

@xiaopow
Copy link

xiaopow commented Jun 27, 2020

Is there a way to move the canvas with mouse wheel / trackpad scroll inside of click and drag?

@dylanvorster
Copy link
Member

You will need to create a new state-machine drag-state for this instead of the standard states. I think there is a PR that was opened a long time ago which aimed to support mobile events, which will include touch events.

@dominiczy
Copy link

Any updates on this?

@kobajs
Copy link
Contributor

kobajs commented May 6, 2021

@renato-bohler is it, somehow, related to mobile events that you're doing?

@renato-bohler
Copy link
Contributor

@renato-bohler is it, somehow, related to mobile events that you're doing?

Not directly... but in order to achieve dragging the canvas with the scroll wheel click, I believe we would need a very similar implementation.

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

5 participants