0

I want to detect Horizontal and Vertical multi finger events like scrolling. I can detect vertical scroll events like this:

Modifier.onPointerEvent(PointerEventType.Scroll) {
  println("onScroll: ${it.changes.first().scrollDelta}")
}

and this is the result:

  onScroll: Offset(0.0, 1.0)

but this api dosn't detect horizontal two finger scroll events. I tried to listen to raw events but with that way I only get Press and Release events.

how can I detect those as well ?

MohammadBaqer
  • 766
  • 6
  • 32

0 Answers0