Replies: 1 comment 2 replies
-
I think this could be done by using the original ratio (width/height or the other way around) and have the parent container aspect be 1(square) like on Instagram. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I was just curious if there was a way to make it impossible to zoom out past the image?

Here is an example of what I am talking about. I have tried messing with the minZoom but I can't seem to devise an algorithm that will properly limit the zoom whilst also allowing for the maximum zoom out ability. I am essentially trying to copy instagram cropping if that helps.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions