saket / telephoto

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

Support rotation in Modifier.zoomable() #26

Open saket opened 1 year ago

saket commented 1 year ago

telephoto's code for coercing content within its zoomable bounds is incompatible with rotation because it uses the top-left coordinate as its pivot. It'd be great if the pivot can be changed to center to unblock rotation of zoomable content.

https://github.com/saket/telephoto/blob/ae0b94b40a9aab50d381585c58f873c03e195fe0/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/ZoomableState.kt#L325