vide
04/27/2023, 3:15 AMawaitPointerEvent
wrong?
.pointerInput(Unit) {
awaitPointerEventScope {
while (true) { awaitPointerEvent(PointerEventPass.Main).changes.forEach { it.consume() } }
}
}
Albert Chang
04/27/2023, 6:21 AMPointetEventPass.Final
so that you only consume events that are not consumed by any child.Surface
already does this so you can probably just use a Surface
as the container.vide
04/27/2023, 6:36 AMFinal
didn't work either :blob-thinking-upside-down: It still breaks the children's scrolling.Surface
implementation. Turns out it is just an empty block:
.pointerInput(Unit) {}
This works for my use case. Thanks for the suggestion of taking a look at Surface!