mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
The code of `ScalableImage` is exactly the same as [here](https://github.com/JetBrains/compose-multiplatform-core/pull/459/files#diff-2df227d37a7fcdb885f4fd1a715c0efd94b8e206d446d553d69a456f83e284f6R19): 1. The initial size of an image is chosen by the area size (phone/windows size) 2. We can zoom using pinch-to-zoom (with taking centroid of touches into account) 3. We can zoom using mouse scroll (also, taking the mouse position into account). On touchpad/macOS it also works great. 4. The code of the old `ScalableState` and `ScalableImage` was complete rewritten. 5. The zoom is not limited by phone/window dimensions, we can zoom out