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

Zoom drag and pan together #372

Closed
OrenMe opened this issue Jun 28, 2020 · 1 comment · Fixed by #484
Closed

Zoom drag and pan together #372

OrenMe opened this issue Jun 28, 2020 · 1 comment · Fixed by #484

Comments

@OrenMe
Copy link

OrenMe commented Jun 28, 2020

Is there a way to set zoom on drag and pan together?
I want to have quick orientation by selecting via drag and fine tuning the selection by panning.
Currently if you set both zoom.drag true and pan then you can't pan cause the zoom drag always works.

Can we add like pan on left drag and zoom drag on rightclick drag or wheelclick and drag?

@flaudanum
Copy link

Actually when I set both, I can zoom by making a drag and drop which defines my zooming area. At the same time dragging translate the view which makes sense as both are triggered by the same mouse event.

So I asked myself how is it implemented in famous diagram edition software solutions? I had a look on InkScape: the drag and drop is set by default for selection and they use window slide bars for translating the view. For instance, in Yed Graph editor they toggle the drag and drop from 'select' to 'translate view' with a button in the toolbar.
So, I guess I'm going to implement something like that.

However, I was surprised that enabling the 'drag zooming' disables the 'wheel zooming'.

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

Successfully merging a pull request may close this issue.

3 participants