-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support to remove disable over-zoom effect #101
Comments
Not at the moment. The ZoomSpec#preventOverOrUnderZoom setting might sound like it controls this behavior, but it actually manages the rubber banding effect. I'm considering changing it to an enum to support this. |
This is what I meant in my issue |
Ah yes that's right, I tried passing a
Perfect sounds great! Thanks a lot for developing and maintaining this great and super-helpful library! |
@MHShetty What's your usecase btw? |
It's mainly to just have the overzoom and under zoom effect disabled while showing images in the gallery of our camera app. Our previous XML code didn't have the fancy zoom effect so we are trying to have something similar in our new compose code. |
I just added a new API, telephoto/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomSpec.kt Lines 84 to 98 in 243b0fa
If anyone's interested in contributing a |
Is there any way we could remove the over zoom effect (i.e. disabling the ability to zoom out more than the image dimensions)?
The text was updated successfully, but these errors were encountered: