Open T8RIN opened 3 months ago
in rememberZoomableState ofc
I don't think a key parameter is necessary for rememberZoomableState. You can use ZoomState.reset instead.
This approach is the same as the Compose official library. For example, rememberScrollState does not have a key parameter. If you want to return the scroll state to the initial state, you can use ScrollState.scrollTo.
reset doesn't reset the state fully, isn't it?
reset()
does reset scale
, offsetX
, and offsetY
.
And if i change the zoom container size, will it help to maintain usability?
Changing contentSize
will not reset the scale and offset.
I did not assume to change contentSize
dynamically.
Do you want to change the image dynamically?
Yes, that's why key param are useful for me
It would be really helpful to have key parameter which by it's changing resets zoom state to initial position