Closed hellosagar closed 6 months ago
Thanks, @usuiat, for making this library. I would appreciate your response :)
Hi, @hellosagar Thank you for using zoomable.
You can use Modifier.clipToBounds()
with zoomable
on AsyncImage
.
@usuiat I've a requirement where whenever the zoom happens i need a callback, to perform some actions. Can i contribute to the library to make a public callback, which will be triggered whenever the scale changes?
@hellosagar I agree that some application needs to know the scale changes. I think it is possible with LaunchedEffect, but would a callback function be better?
LaunchedEffect(zoomState.scale) {
// something to do
}
Thank you, that will be enough
Applying the zoom modifier to an image in the sample app also affects other composables. For instance, when I added a column below the AsyncImage, the image overlapped over the other composable on zooming. I don't know if this is a bug or intended behavior.
How do you keep the zoom in the image bound itself?
Sample Code App with the Text in Column
Proof:
https://github.com/usuiat/Zoomable/assets/50016799/ce89c686-49a9-4e1b-974f-848900421796