aclassen / ComposeReorderable

Enables reordering by drag and drop in Jetpack Compose (Desktop) LazyList & LazyGrid.
Apache License 2.0
821 stars 86 forks source link

Add onDragStart callback #277

Open lcacheux opened 1 year ago

lcacheux commented 1 year ago

I needed a way to handle long press events for items in a reorderable list with detectReorderAfterLongPress, but using the combinedClickable modifier didn't worked in combination with the event management of ComposeReorderable.

The solution I found was to detect the onDragStart event, but it was not available in the API (unlike the onDragEnd event).

bpappin commented 7 months ago

This PR was copied to another fork. https://github.com/bpappin/ComposeReorderable/pull/4