Guilherme Delgado
02/21/2022, 1:36 PMPointerInputScope.detectTransformGestures
to compute and apply some transformations to a composable
but I need to know when the user stops touching the screen.
I was thinking in combining it with PointerInputScope.detectDragGestures
and listen for onDragEnd
but only one is used.
1 - Is is possibile to combine “Gestures”?
2 - What’s the best approach for what I want?
thx.Albert Chang
02/21/2022, 3:44 PMdetectTransformGestures
.Guilherme Delgado
02/21/2022, 4:34 PMGuilherme Delgado
02/21/2022, 4:34 PMsuspend fun PointerInputScope.detectTransformGestures(
panZoomLock: Boolean = false,
onEvent: (event: PointerEvent) -> Unit, <<<<<<<<<<<<<<<<<<<<<<<<<
onGesture: (centroid: Offset, pan: Offset, zoom: Float, rotation: Float) -> Unit
) { ... }