Barrierepruefung.de Web Accessibility Checker

WCAG 2.5.1 Pointer Gestures: explained simply

Anything that works by a multipoint gesture, or by a gesture where the path of the movement matters, must also work with a single pointer and no such path, for example with a tap. The exception is functionality for which a gesture of that kind is essential.

Last reviewed: Sources

What does the criterion require?

Some functions are triggered by special gestures: spreading two fingers on a map, swiping through a gallery. Not everybody can do that. Some people cannot perform gestures precisely; others use a head pointer, an eye-gaze system or a speech-controlled mouse emulator. With such tools these gestures are often difficult or impossible.

The criterion covers two kinds of gesture:

  • Multipoint gestures use more than one pointer at the same time. Examples are pinching and spreading with two fingers, or swiping with two or three.
  • Path-based gestures depend on the path along which the pointer moves. Examples are a swipe that is only recognised when the movement is mostly straight, or tracing a shape.

All functionality operated this way must also be operable with a single pointer and without a path-based gesture. A single pointer is, for instance, a mouse, one finger or a stylus. As alternatives the W3C names taps and clicks, single or double, long presses, and click and hold. The gesture itself may stay. The alternative also helps people who do not understand a custom gesture and get on better with a simple click.

Functionality is exempt if a multipoint or path-based gesture is essential for it. Essential, in the standard's definition, means that removing it would fundamentally change the information or functionality of the content, and that these cannot be achieved in another way that would conform. The W3C's example is entering a signature, which may be inherently path-based. Acknowledging something or confirming your identity need not be.

A note in the standard limits the criterion to web content that itself interprets pointer actions. Gestures required to operate the browser or assistive technology are not covered. Nor, according to the Understanding document, are gestures of the operating system, such as swiping down for notifications.

What about dragging and the keyboard?

In plain dragging only the start and end points matter, not the path. That is not a path-based gesture; it belongs to 2.5.7 Dragging Movements. A slider, or a carousel that is dragged, therefore only comes under 2.5.1 if users have to follow a path precisely, for example because the slider loses their grip as soon as they stray from its track. Conversely, the alternative must not rely exclusively on dragging, as that would fail 2.5.7.

Being operable by keyboard, which 2.1.1 Keyboard requires, is not enough here: some people rely entirely on pointing devices.

Common failures

  • A gesture with no alternative. Drawing a "Z" on the screen undoes the last action, and there is no other way to undo it (F105).
  • Actions hidden behind a swipe. Swiping a list item reveals "Delete" and "Archive". After opening the item with a tap or click, at least one of them is not available (F105).
  • A swipe-only carousel. The script detects quick horizontal swipes, and there are no buttons for previous and next. Such buttons are the solution the W3C describes (G215).
  • A map without plus and minus. The only way to zoom the map is to pinch or spread two fingers. In the Understanding document's example there are buttons for zooming in and out as well.
  • A slider that insists on the path. It responds only to precise swiping or dragging along its track. Letting people tap or click the track would be a simple alternative (G216).

Checked automatically and checked by you

What the automated check detects

The automated check does not measure this criterion. It is covered by a question in the manual checks.

What you check yourself

You answer this question in the manual checks of your scan.

Can everything that uses swipe or multi-finger gestures also be operated with one finger or the mouse without such a gesture?

  1. On several pages of different kinds, preferably on a smartphone or tablet, look for gestures that the website itself interprets: gestures with several fingers, such as pinching and spreading with two fingers in a map, and gestures where the path of the movement matters, such as a quick swipe to the next picture in a gallery or tracing a shape. A carousel that only responds to a quick swipe uses such a gesture; one whose content follows the finger is mere dragging and not meant here. Gestures of the browser or operating system are not meant, such as scrolling the page or swiping to go back in the history.
  2. For each such gesture, check whether the same function can also be operated with one finger or the mouse without such a gesture, for example by tapping or clicking, double tapping or a long press: plus and minus buttons on the map, arrows to move forwards and backwards in the gallery. If that exists for every gesture, the requirement is met; if it is missing for one, that is a defect. That the function can be operated by keyboard is not enough.
  3. Mere dragging is not a defect where only the start and end points matter and the path in between is free, such as moving and dropping an item or moving an ordinary slider. A gesture that is essential for the function is not a defect either; the W3C gives a handwritten signature as an example. If you find only such cases, choose "not applicable".

Classification

Level
A
Introduced in
WCAG 2.1
W3C explanation
Understanding 2.5.1