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

How to set the maximum zoom? #52

Open
Eriickson opened this issue Dec 29, 2023 · 1 comment
Open

How to set the maximum zoom? #52

Eriickson opened this issue Dec 29, 2023 · 1 comment

Comments

@Eriickson
Copy link

I have been using this library and I have loved it, the documentation is a bit extensive and I am still in the process of reading it completely, therefore I have a question and that is how could I apply a maximum zoom to my images? because currently the user could do some kind of infinite zoom and I would like to restrict this feature to the users of my application

@Norserium
Copy link
Collaborator

@Eriickson, well, you can set minWidth and minHeight.

It's half-measure, but it will prevent infinite zoom, otherwise you can customize the transformImageAlgorithm to limit zoom explicitly.

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