Closed pkrystyniak-jt closed 6 months ago
Hi, @pkrystyniak-jt Could you explain in a little more detail? Is it not enough to observe ZoomState.scale?
You're right, I missed the fact it's a mutable state. I might observe it by using snapshotFlow
. That should do, thanks for leading me to this solution.
LaunchedEffect(zoomState) {
snapshotFlow { zoomState.scale }.collect { scale ->
...
}
}
Hey, I have an UI element over the zoomable Image, that I want to hide or show depending if the image is zoomed in or out. I don't see a direct way to observe the scale changes at this moment. Would it be possible to f.e. add a callback for scale changes?