You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to start dragging only after timeout (long tap activator)? #115
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!
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.
Reacted by Paxee (Alex)
Reacted by Ilya Yurchenko and Șerban Mihai-Ciprian
Activity
iamcsharper commentedon Jul 5, 2024
martinpengellyphillips commentedon Jul 5, 2024
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 commentedon Aug 25, 2024
I'm also waiting for this