WCAG Encyclopedia

2.5.1 · OperableLevel A

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.

Broken: Zooming is gesture-only.
Mappinch to zoom · two fingers to rotate

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.

Fixed: Buttons do everything the gestures do.
Map+ − Reset north · pinch still works

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. Goal. Let someone zoom a map without pinching.
  2. 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.
  3. Try this. The lab starts on Pinch only, which fails. Pick Pinch, or the + and − buttons, then switch back.
  4. 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.
The map zooms by
With one finger: no way to zoom

2.5.1 fails

Also in guideline 2.5

Criteria in the same guideline often fail together.