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

pinchZoom: Add option to change the zoom factor #96

Open
cbn-falias opened this issue May 3, 2023 · 1 comment
Open

pinchZoom: Add option to change the zoom factor #96

cbn-falias opened this issue May 3, 2023 · 1 comment

Comments

@cbn-falias
Copy link

First of all, thank you for this great plugin!

We are currently working on a project where the required zoom can increase very heavily.
By adjusting the zoomFactor the mouse wheel zoom works just fine.
Unfortunately there is no such thing when zooming with pinchZoom.

Would it be possible to add a new option like pinchZoomFactor or zoomFactorPinch?

@Fuzzyma
Copy link
Member

Fuzzyma commented May 3, 2023

when you pinchzoom, your 2 fingers always stay on the same spot on the canvas. that means you can only zoom as much as you can spread your fingers. A zoom factor doesnt really make sense.

If you want that anyway you are welcome to create a PR. The code should be easy enough to understand.
e.g. I would start by multiplying the zoomAmount in the pinchZoom function by 2 and see if it works as you would expect

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

No branches or pull requests

2 participants