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

Adding support for Handles #11

Closed
BierDav opened this issue Sep 8, 2021 · 2 comments
Closed

Adding support for Handles #11

BierDav opened this issue Sep 8, 2021 · 2 comments

Comments

@BierDav
Copy link
Contributor

BierDav commented Sep 8, 2021

Hello,
I wanted to bring in an idea. Add support for a composable to function as drag handle. So don't have to wait for the long press duration and can immediately start reordering.

Expected Behavior:

  • If you long press the item nothing should happen
  • If you press down the handle composable the dragging should start.
  • As the user releases the handle the dragging should stop as it would with long press reordering

Implementation suggestions:

  • A Modifier-extension named "dragHandle()" which attaches pointerInput() and handels everything
@aclassen
Copy link
Owner

aclassen commented Sep 8, 2021

Drag handles are already supported.
Checkout the desktop sample

@BierDav
Copy link
Contributor Author

BierDav commented Sep 9, 2021

Ah. Thank you.

@BierDav BierDav closed this as completed Sep 9, 2021
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

No branches or pull requests

2 participants