How can I detect drag gestures in three equally si...
# compose
z
How can I detect drag gestures in three equally sized zones? I want to have a left, center and right zone where I'll perform different actions when the user drags on them.
f
Not sure if this is what you're asking, but with pointerInput you can get the coordinates where the user is dragging
Here's a gist where I check if the user is dragging on the top or bottom half to decide the direction of movement https://gist.github.com/fvilarino/0a1b81b459e4aa2b525a0123c14bb05e#file-circular_carousel_07-kt
m
I guess I would just create three equally sized layout elements (box for example) and assign the detectDrag and do your stuff on each of them.