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

make zoomable image like instagram posts #162

Closed Hamidreza-mj closed 5 months ago

Hamidreza-mj commented 6 months ago

how can i implement image zoom like instagram posts it's set scale to 1f after pinch is released.

usuiat commented 6 months ago

@Hamidreza-mj Unfortunately, Zoomable's current API does not allow for Instagram-like behavior. It is necessary to add a callback to notify that the gesture has ended.

aeiou-st commented 5 months ago

how can i implement image zoom like instagram posts it's set scale to 1f after pinch is released.

@usuiat If you can do something for this please look into your spare time.

usuiat commented 5 months ago

@Hamidreza-mj @aeiou-st I've just published v1.7.0-beta01. Please try to use Modifier.snapBackZoomable. Thanks 😄

Hamidreza-mj commented 5 months ago

@usuiat Thank you for making this changes

aeiou-st commented 5 months ago

@usuiat Thank you for making this changes 🥳