Pointer Gestures
Anything driven by a multi-finger or path-based gesture — pinch, two-finger rotate, swipe along a track — needs a single-pointer alternative, unless the path itself is the point. A pinch-to-zoom map still needs plus and minus buttons.
- Principle
- Operable
- Guideline
- 2.5
- Level
- A
- In WCAG since
- 2.1
- Number
- 2.5.1
Broken, then fixed
The same interface twice: first with the mistake, then with the smallest change that fixes it.
Zooming is gesture-only.
Someone using a head pointer, a switch, or one finger has no way to zoom. Nor does anyone with a tremor, for whom a controlled pinch is not reliable.
Buttons do everything the gestures do.
The gestures stay for people who like them. What changed is that they are no longer the only way in.
How to test
Check your own interface against 2.5.1, one step at a time.
- List every function the page operates with a gesture: a swipe through a carousel, a pinch to zoom a map, a two-finger rotate, a shape traced on a pattern lock.
- Leave out the gestures the browser or the operating system provides, such as pinch to zoom the whole page. Only gestures the page itself handles count.
- For each gesture, look for a way to do the same thing with single taps or clicks: next and previous buttons, zoom in and zoom out buttons, a menu option.
- Use that alternative with one finger on a phone, or with a mouse click on a computer. Check that it does everything the gesture does.
Common questions
Does a keyboard alternative satisfy 2.5.1?
No. A person with a head pointer or one finger may have no keyboard to hand. The gesture needs an alternative they can work with single taps or clicks, such as a button.
Is dragging a path-based gesture?
No, when only the start and the end of the movement matter, as in drag and drop. That is a dragging movement, which 2.5.7 Dragging Movements covers. A gesture is path-based when the route the pointer takes is part of the input, such as a swipe in one direction or a traced shape.
Does the browser’s pinch to zoom count for 2.5.1?
No. 2.5.1 covers gestures the page provides, not ones built into the browser or the operating system. A map that handles its own pinch gesture is covered, and needs zoom buttons too.
Try it yourself
A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.
Try it: give the map buttons
How to use this lab
- Goal. Let someone zoom a map without pinching.
- The controls. The options under “The map zooms by” switch the mock map between Pinch only and Pinch, or the + and − buttons. The line beside them says what one finger can do.
- Try this. The lab starts on Pinch only, which fails. Pick Pinch, or the + and − buttons, then switch back.
- What it means. With the + and − buttons, 2.5.1 passes: a single tap does what the pinch does. With pinch only, 2.5.1 fails, because people who use one finger, a head pointer or a mouth stick can’t make a two-finger gesture. The verdict line under the lab says which.
2.5.1 fails
Also in guideline 2.5
Criteria in the same guideline often fail together.
- 2.5.2, OperableLevel A
Pointer Cancellation
Fails when: Deleting fires the moment the pointer goes down.
- 2.5.3, OperableLevel A
Label in Name
Fails when: The visible text and the accessible name disagree.
- 2.5.4, OperableLevel A
Motion Actuation
Fails when: Shake to undo, and no other way.
- 2.5.7, OperableNew in 2.2Level AA
Dragging Movements
Fails when: Reordering works by drag and drop only.
- 2.5.8, OperableNew in 2.2Level AA
Target Size (Minimum)
Fails when: Sixteen-pixel icons, packed edge to edge.