usuiat / Zoomable

Jetpack Compose library that enables contents zooming with pinch gesture.
https://usuiat.github.io/Zoomable/
Apache License 2.0
342 stars 16 forks source link

Support for boundary clip #156

Closed T8RIN closed 4 months ago

T8RIN commented 6 months ago

We can now use

Modifier
   .clipToBounds()
   .zoomable(zoomState = zoomState)

but it will be good if we can use it like that

Modifier
   .zoomable(
        zoomState = zoomState, 
        clip = true
   )
usuiat commented 4 months ago

I agree that zoomable and clip are often used together. However, clip processing is independent from zoomable processing. Therefore, I don't think clip functionality should be added to zoomable.