Lamberto Basti
03/03/2023, 1:35 PMBox
with a such modifier to intercept the clicks and do stuff, but I want the content
of the box to also receive the clicks!Igor Demin
03/03/2023, 2:32 PMModifier.pointerInput
to the Box and react to events, without consuming them (event.consume()
is called by clickable or onClick, for example)Pablichjenkov
03/03/2023, 3:26 PMZach Klippenstein (he/him) [MOD]
03/06/2023, 5:18 PMPablichjenkov
03/07/2023, 2:24 AMInitial
and Main
first time I heard of it. Could you point out some documentation in regards Zach.
I am consuming Main apparently, because I noticed my events gets passed to the inner most composable.Zach Klippenstein (he/him) [MOD]
03/07/2023, 5:53 AMPablichjenkov
03/07/2023, 6:04 AMforEachGesture {
awaitPointerEventScope {
val eventDown = awaitFirstDown(requireUnconsumed = true)
...
do {
val event: PointerEvent = awaitPointerEvent(PointerEventPass.Main)
...
} while (event.changes.any { it.pressed })
ephemient had given me some directions in another thread. I understand the touch API better now. Bellow is a video of what I was describing.