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?
- People with motor disabilities
Official wording
This page explains the rule in simple words. Only the original W3C text is normative.
- “Understanding Pointer Cancellation” at W3C (external site)
- Techniques in the WCAG Quick Reference (external site)