saket / telephoto

Building blocks for designing media experiences in Compose UI
https://saket.github.io/telephoto/
Apache License 2.0
869 stars 28 forks source link

New Feature: Min & Max Zoom Level #55

Closed devs-gireeb closed 7 months ago

devs-gireeb commented 7 months ago

I suggest adding min and max zoom options to image component for better UX. This would let us control zoom levels, ensuring a smoother experience.

Ex: minZoom: Float = 1f, maxZoom: Float = 5f

saket commented 7 months ago

Does this help?

val state = rememberZoomableState(
  zoomSpec = ZoomSpec(maxZoomFactor = 5f)
)
devs-gireeb commented 7 months ago

Does this help?

val state = rememberZoomableState(
  zoomSpec = ZoomSpec(maxZoomFactor = 5f)
)

Certainly helpful , Thank you @saket