Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
ca...@gmail.com <ca...@gmail.com> #2
Maybe on same topic : the medthod onLongClick from the modifier combinedClickable doesnt work neither
.combinedClickable(
onClick = { },
onLongClick = { }
)
.combinedClickable(
onClick = { },
onLongClick = { }
)
ti...@persgroep.net <ti...@persgroep.net> #3
How can something this basic be overlooked?
he...@google.com <he...@google.com> #4
Thanks for reporting this issue. The modifiers shared in the samples (pointerInput
& combinedClickable
) are designed to work mainly with the touch based input.
We have updated the Surface & derived components (Cards & Buttons) APIs to include onLongClick
callback. Please refer to this
This change would be available in the upcoming release.
Description
Version used:
1.0.0-alpha06
Devices/Android versions reproduced on:
All devices
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
We can not use pointerInput
.pointerInput(Unit){
detectTapGestures(
onLongPress = {
// perform some action here..
}
)
}
Because DPad press event is consumed and not propagated