Transform: Pan, Zoom & Rotate
Support pinch and multi-touch gestures.
Pinch, Zoom, Rotate
Some gestures use two fingers at once. Compose bundles pan, zoom, and rotate into a single helper called detectTransformGestures. 🤏
One Detector, Three Values
Inside pointerInput, detectTransformGestures hands you pan as an Offset, zoom as a Float scale, and rotation in degrees together.
detectTransformGestures { _, pan, zoom, rotation -> }All lessons in this course
- pointerInput & detectTapGestures
- Drag, Swipe & Fling
- Transform: Pan, Zoom & Rotate
- Nested Scroll Connections