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

Going under zoom factor 1, jumps back to zoom factor 1 #139

Open
Funnybanny opened this issue Mar 2, 2023 · 1 comment
Open

Going under zoom factor 1, jumps back to zoom factor 1 #139

Funnybanny opened this issue Mar 2, 2023 · 1 comment

Comments

@Funnybanny
Copy link

This seems to be a built in feature, so I dont think this is an issue. Im curious why does that happen. Based on my debugging all calculations are correct, but when event ends the last zoomUpdate puts it back to zoomfactor 1.

My question is why does zooming out disallowed, also how to turn it off?

@milansimek
Copy link

@Funnybanny I think you can use the zoomOutFactor option for this. By default it's set to 1.3, which means the zoom will be restored to 1 if the current zoom is below 1.3.

I think it's actually necessary to enable this if you want the element to get re-centered when zooming out.

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