Landry Norris
01/06/2023, 2:39 PMprivate fun SemanticsNodeInteraction
.twoFingerGesture(offset1, offset2) {
performTouchInput {
down(0, offset1)
down(1, offset2)
up(0)
up(1)
}
}
When I put logs in forEachGesture, it seems like the pointer id is set to 2 for all 4 events, and the event.changes size is always 1, instead of (1, 2, 2, 1) like when I do the same gesture manually. Is there something I’m doing wrong in my code?Andrew Neal
01/06/2023, 4:04 PMawaitEachGesture
instead of forEachGesture
?Landry Norris
01/06/2023, 4:05 PMforEachGesture {
awaitPointerEventScope {
do {
val event: PointerEvent = awaitPointerEvent()
Landry Norris
01/06/2023, 4:08 PMLandry Norris
01/06/2023, 4:09 PM