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

How to start dragging only after timeout (long tap activator)? #115

Open
iamcsharper opened this issue Jul 5, 2024 · 3 comments
Open

How to start dragging only after timeout (long tap activator)? #115

iamcsharper opened this issue Jul 5, 2024 · 3 comments

Comments

@iamcsharper
Copy link

iamcsharper commented Jul 5, 2024

I'm building a popup with a series of full-width slides, one for each day. Each day has a sortable list of cards.

I want to make it so that users can only start dragging and sorting the cards if they long-press on them (meaning they hold their finger down for at least one second).

How can I implement this using solid-dnd? Any suggestions or examples you can provide would be greatly appreciated!

@iamcsharper
Copy link
Author

image

@martinpengellyphillips
Copy link
Contributor

So the default sensor has a delay but it is not currently customisable. Now there is a use case, I'll look at making that customisable.

In the meantime, you'll need to copy that sensor code into a custom sensor, modify it as you need and register it instead as the sensor you want to use.

@serban-mihai
Copy link

I'm also waiting for this

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

3 participants