Is there a way to detect user stopping the gesture...
# compose
b
Is there a way to detect user stopping the gestures when using
detectTransformGestures
? Like
onDragEnd
of
detectDragGesture
. I need to reset transformations after user stops the gestures.
Use case: https://gist.github.com/alashow/6492f6407434ca42ad7819dde2ae4a8e. Currently resetting after a 150ms delay. I also tried with this, but onPressRelease happens before the gestures end.
Copy code
.pointerInput(Unit){
                detectTapGestures(onPress = {
                    Timber.d("onPress")
                    val s = tryAwaitRelease()
                    Timber.d("onPressRelease")
                })
            }
a
Hey, did you find any solution? I am also stuck on the same issue