I want to detect tap gesture in LazyColumn and long press gesture in items:
LazyColumn(
modifier = Modifier.pointerInput(Unit) {
detectTapGestures(onTap = { /* do something */})
}
) {
items(items) {
ListItem(
modifier=Modifier.pointerInput(Unit) {
detectTapGestures(onLongPress = { /* do something else */})
}
)
}
}
Obviously ListItem will consume all gestures. So my question is how to detect tap gestures without consuming them?