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

Add ability to constrain max zoom to 100% of original image size #7311

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

broox
Copy link
Contributor

@broox broox commented Feb 11, 2024

A numeric maxRatio multiplier can be specified as an option on the Zoom module, which is great, however the image can scale past the image's original resolution. This adds a new boolean parameter called limitToOriginalSize that will prevent zooming past the image's natural size.

Closes #7303

@nolimits4web nolimits4web merged commit 645f266 into nolimits4web:master Feb 27, 2024
3 checks passed
@nolimits4web
Copy link
Owner

Merged, thanks!

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

Successfully merging this pull request may close these issues.

Constrain max zoom to 100% of a slide's image size on the Zoom module
2 participants