Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onDragStart callback #4

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

bpappin
Copy link
Owner

@bpappin bpappin commented Feb 2, 2024

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).

This PR was copied from aclassen#277

@bpappin bpappin changed the base branch from main to develop February 2, 2024 16:25
@bpappin bpappin merged commit 23f2d4b into bpappin:develop Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants