0

When detectVerticalDragGestures and detectHorizontalDragGestures overlap (i.e. they belong to different composables, but share the same touch source), how can I dispatch events to detectHorizontalDragGestures only when the drag is very horizontal (i.e. the angle is more acute)?

When scrolling with our thumb, vertical swipes tend to be detected as horizontal ones.

enter image description here

user16885569
  • 221
  • 1
  • 4
  • 11
  • Check also https://stackoverflow.com/questions/65573008/detect-swipe-direction-on-jetpack-compose/66998079#66998079 – Gabriele Mariotti Nov 10 '22 at 16:54
  • That's not what I was looking for. I actually found a solution: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1668543055698709?thread_ts=1667632578.033199&cid=CJLTWPH7S – user16885569 Nov 15 '22 at 20:15

0 Answers0