motiondivision / motiondivision/motion
How to delay the drag action ?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33.7k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 14
Description
I would like to achieve delay on the drag start action, since using the drag-drop inside a scrollable container I want to be able to scroll as normal behavior, only start dragging the item if the user is kept holding onto it for a few seconds.
I'm using Reorder.Group Reorder.Item
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Reorder.Group and Reorder.Item documentation and the existing drag-start behavior. Determine how delayed dragging should interact with scrolling, then define the user-visible behavior and API needed for a hold-to-drag interaction. Done means scrolling remains normal until the hold duration elapses, after which reordering starts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100