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

Variable zoom speed #2

Open
www-chique opened this issue Mar 6, 2021 · 0 comments
Open

Variable zoom speed #2

www-chique opened this issue Mar 6, 2021 · 0 comments

Comments

@www-chique
Copy link

I noticed that for really large images (more than 3000x3000), the zoom is too fast initially.
However, I could fix it by changing the delta / factor here:
updateScale(transform, transform.getScale() - delta / 10, e.offsetX, e.offsetY);
Tweaking that "10" or other values here solves the issue.
So I was thinking if it's possible to make it configurable as a property? Or somehow adjust it based on the image's dimension.

I am a newbie at this, so maybe someone else has a better way to implement this.

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

1 participant