Hello 👋 is there a way to detect drag events and also detect when the user lifts their finger up? I've tried
changeToUp
from the Pointer input scope but that doesn't seem to do what I think.. currently I use
PointerInput
and
detectDragGestures
.
Chris Johnson
10/17/2021, 9:09 PM
My backup solution is to implement ACTION_MOVE and ACTION_UP myself via
pointerInteropFilter
a
Albert Chang
10/17/2021, 11:10 PM
Is the
onDragEnd
callback of
detectDragGestures()
not sufficient?
c
Chris Johnson
10/17/2021, 11:13 PM
I haven't looked at that to be honest! That does make sense that that would be equivalent to a user lifting their finger up... Let me try it out and I'll let you know!
Chris Johnson
10/18/2021, 4:21 PM
That ended up being exactly what I needed. Thanks @Albert Chang !