Level ASince WCAG 2.1

2.5.2 Pointer Cancellation

Guideline 2.5: Input Modalities – Using touch, pointers and motion is simple and forgiving.

What does the rule require?

An action fires on release, not on press. That way an accidental press can be cancelled by sliding away.

How to get it right

Respond to the click event instead of mousedown or touchstart.

Who benefits most?

Official wording

This page explains the rule in simple words. Only the original W3C text is normative.