Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
forEachGesture
is an extension ofPointerInputScope
and has a lambda also onPointerInputScope
. It repeats the lambda, which must callawaitPointerEventScope
inside it to find gestures. On each loop, it must enter and exitAwaitPointerEventScope
and each time it exits, there is a chance that events get lost between gestures.We need a new method that loops wholly within
AwaitPointerEventScope
so that events aren't lost.forEachGesture
can't be deprecated because there are use cases where suspend functions or acoroutineScope
belongs within the lambda block. But most gesture detectors don't need that.