Alex
11/10/2021, 11:00 AMAlex
11/10/2021, 11:01 AMcomposed {
pointerInput(Unit) {
coroutineScope {
while (true) {
val pointerId = awaitPointerEventScope { awaitFirstDown().id }
awaitPointerEventScope {
horizontalDrag(pointerId) {
...
Alex
11/10/2021, 11:02 AMZoltan Demant
11/10/2021, 11:16 AM.pointerInput(Unit) {
detectDragGestures { change, (x, y) ->
change.consumeAllChanges()
// Some drag stuff
}
}
.clickable(
onClick = {
// Some click stuff
}
)
Alex
11/10/2021, 12:10 PMAlex
11/10/2021, 12:10 PMColton Idle
11/10/2021, 4:31 PM