that would consume the events and prevent single click when the user longpress but does not drag and up. To handle both longpress drag and long press preventing the default click action.
Tolriq
08/26/2023, 4:24 PM
If the user does not move the drag and cancelled before any onDrag is called and this triggers a single click. I tried to add every possible variation of event consuming before the dragCancel is called.
Copy code
currentEvent.changes.fastForEach {
it.consume()
}
But the click event is still sent and I have no more ideas 😞