Drag-and-drop interactions that work on phones and tablets
Drag-and-drop is hard on touch screens. Here's how to design targets, feedback and a click-based alternative so every learner can complete it on any device.
Drag-and-drop looks great in a demo and fails quietly on a phone. The item slips under a thumb, the page scrolls when the learner wanted to drag, the drop zone is the size of a pea, and nobody can use it with a keyboard at all.
None of that is a reason to avoid it. A good drag-and-drop teaches sorting, matching and sequencing better than a list of radio buttons. It just needs some design care.
Ask whether you need it
Drag-and-drop is a mechanic, not a goal. Before you build, state what the learner practises: categorising, ordering a process, matching terms to definitions.
If a plain multiple-choice or matching question tests the same thing, it’s more reliable, faster to complete and easier to make accessible. Use drag-and-drop when the physical act of placing something helps, such as arranging steps or sorting cards into groups.
Size and spacing
Fingers are bigger than cursors, and they cover what they touch.
- Make drag items large. Aim for a comfortable touch target, around 44 by 44 pixels at minimum, and bigger for text-heavy items.
- Make drop zones larger than the items. Learners shouldn’t need to land exactly. A generous target forgives an imprecise drop.
- Leave space between zones. Crowded targets cause drops in the wrong box.
- Keep the item visible while dragging. A finger hides it, so show a copy slightly above or beside the touch point if your tool allows.
- Limit the number of items. Four to six per screen is plenty on a phone. More means scrolling, and scrolling and dragging fight each other.
Avoid scrolling conflicts
On a touch screen, a vertical swipe usually scrolls the page. A drag that starts as a vertical swipe may do both, or the wrong one.
- Keep the whole interaction on one screen without scrolling.
- Put drop zones close to the items, not off the bottom of the slide.
- If the slide must scroll, test on a real phone and watch where the page moves.
Give clear feedback
- Show where an item can land. Highlight zones as the learner drags over them.
- Snap items into place when they’re dropped on a target, and send them back when they aren’t.
- Say what happened in words. “Correct: this step comes second” works for learners who can’t see the movement, and it works for everyone.
- Let learners undo a drop, or move an item again, before they submit.
- Don’t punish exploration. Mark the answers only when they press Submit.
See quiz questions that test understanding for writing feedback that teaches.
Always provide a non-drag way
This is the part that matters most. Some learners can’t drag: people using a keyboard, a switch or a screen reader, people with a tremor, and anyone on a shaky bus. The Web Content Accessibility Guidelines expect a way to do the task that doesn’t depend on a drag gesture.
The simplest approach is select, then place:
- The learner selects an item (tap or Enter).
- They select a zone (tap or Enter).
- The item moves there.
That works with a finger, a mouse and a keyboard. If your tool’s drag-and-drop doesn’t offer it, build an alternative. A matching question gives you the same outcome without any dragging, and you can offer it as the fallback, or use it for the graded version.
Check our WCAG checklist for the keyboard and focus requirements, and don’t skip a test with the keyboard alone.
Test on real devices
Emulators lie about touch. Before launch:
- Test on a phone and a tablet, in portrait and landscape.
- Try with big and small thumbs.
- Try dragging a long distance and a short one.
- Try it while holding the device in one hand.
- Try the keyboard-only route on a desktop.
- Turn on the device’s reduced motion setting and check nothing breaks.
If five colleagues can finish it first time without instructions, it’s ready. If they ask “what do I do?”, add a short line of instruction above the interaction.
Where this leaves SCORMCraft
SCORMCraft is a free, open-source authoring tool. Its Drag and drop question type lets you name the drop zones and list the items that belong in each (see Quizzes), and Matching is there as an alternative. Slides built from rows and columns reflow into one column in Phone view. Run the device checklist above on your own exported course, because touch behaviour depends on the player and the browser. Read about responsive slides, then download SCORMCraft to try it.