Pointer Cancellation (2.5.2)
For single-pointer actions, at least one of the following must be true: the down-event does not trigger the action, the action is triggered on the up-event and can be aborted, the up-event reverses any outcome of the down-event, or completing the action on the down-event is essential.
Applies to: WCAG 2.1, WCAG 2.2 Introduced in: WCAG 2.1 | Level: A | Read the official specification →
What this rule checks
The scanner verifies that interactive elements do not fire irreversible actions on mousedown or touchstart alone, allowing users to abort by moving the pointer away before releasing.
Why it matters
Users with motor impairments frequently trigger accidental clicks. Firing on the up-event (click/mouseup/touchend) allows them to move the pointer off the target before releasing, cancelling the action.
Common failure patterns
- destructive actions (delete, submit, purchase) triggered on
mousedown - drag-and-drop that commits on
pointerdownwith no undo - custom buttons that respond to
touchstartinstead ofclick
Remediation guidance
- use
clickevents rather thanmousedownortouchstartfor actions - if down-event activation is needed, provide an undo or confirmation step
- implement drag cancellation by allowing users to drop outside the target zone
- test by pressing down on a button, dragging away, and releasing to confirm no action occurs
