frontend-collective / frontend-collective/react-sortable-tree
Add a delay after drop
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
If I drop an element, I have to then re-sort the tree to reflect the new order. With large trees, this resorting can take a second or so. This means that after I drop an element, it returns to its original position, and then waits for my re-sorting to be done, and then it adjusts to its new position. This flicker of movement is very annoying.
It would be ideal if on drop, the item stayed in its dropped position for around 2 seconds or so. This would prevent the flicker.
react-beautiful-dnd implemented it this way and it works really great.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the drag-and-drop drop handler and the tree resorting flow described in the issue. Trace when the item is restored to its original position, then define the change so the dropped position remains visible for about two seconds without flicker; verify the behavior with the project's existing tests or manual large-tree sorting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100