Hello :wave: is there a way to detect drag events ...
# compose
c
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
.
My backup solution is to implement ACTION_MOVE and ACTION_UP myself via
pointerInteropFilter
a
Is the
onDragEnd
callback of
detectDragGestures()
not sufficient?
c
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!
That ended up being exactly what I needed. Thanks @Albert Chang !
👍 1