Drag and Drop
Drag and drop lets users move, copy, connect, or reorder an object by holding it through a pointer movement from a source to a destination.
Download Markdown (.md)Soroush’s Product Wiki · https://wiki.soroush.uk/topic/drag-and-drop/
01What it means
Drag and drop is a direct-manipulation method in which a user picks up an object, moves it while maintaining contact, and releases it over a valid destination. The result may be a move, copy, reorder, upload, or relationship change. Accessible alternatives must provide the same outcome without requiring dragging.[1][2]
02Why it matters
Direct manipulation can make spatial operations fast and tangible, but dragging demands motor precision and hides valid destinations until interaction begins. Clear feedback, reversibility, and equivalent controls reduce errors and exclusion.
03When to use it
Use drag and drop when spatial placement or reordering is central and destinations can be made apparent, such as moving tasks across a board. Always provide click, tap, keyboard, or menu alternatives; use those simpler controls alone when dragging adds little value.
04How it works
- Define draggable sources, valid destinations, and whether each result moves, copies, or links content.
- Give a clear pickup affordance and show the item’s dragged state without losing its origin context.
- Reveal valid and invalid destinations and provide feedback as the pointer crosses them.
- Confirm the result in the interface and make accidental changes undoable where possible.
- Provide non-drag pointer and keyboard methods, then test touch, scrolling, zoom, assistive technology, and failure recovery.
05A practical example
A roadmap board lets users drag an initiative between quarters, but each card also has a Move menu with the same destinations. Valid columns highlight during dragging, dropping updates the quarter, and a persistent history plus Undo recovers an accidental move.
06Where it breaks
Dragging can be imprecise, difficult with motor impairments, undiscoverable, and incompatible with scrolling gestures. Complex canvases may require spatial understanding that does not translate well to small screens or linear assistive-technology output.
Common mistakes
- Making dragging the only way to complete the operation.
- Failing to show which destinations accept the object and what the result will be.
- Using a small drag handle or requiring a long precise path.
- Completing destructive moves without confirmation, undo, or another recovery route.
07Sources
- Understanding Success Criterion 2.5.7: Dragging MovementsW3C Web Accessibility Initiative · Accessibility guidanceUnderstanding Success Criterion 2.5.7: Dragging Movements
- Drag and dropApple · Institutional guidelineDrag and drop