Pointer Gestures
Anything that can be done with a multi-point or path-based gesture, such as pinch-to-zoom, two-finger scroll, or swiping a card away, can also be done with a single tap or click.
Why it matters
Someone using a head pointer, a single switch, or one finger cannot pinch or swipe. A map that only zooms by pinching, or a carousel that only advances by swiping, has no way in for them.
Needs manual testing
Gesture handling is JavaScript behaviour that no rule can see. For every gesture the page responds to, look for a button or link that does the same thing with one click.
Fails
<div class="map" data-gesture="pinch-zoom" data-pan="drag"></div>The map zooms by pinching and moves by dragging. A single-pointer user can look at it but cannot operate it.
Passes
<div class="map" data-gesture="pinch-zoom" data-pan="drag"></div>
<div class="map-controls">
<button type="button" aria-label="Zoom in">+</button>
<button type="button" aria-label="Zoom out">−</button>
</div>Gestures still work for those who can use them, and single-click buttons provide the same zoom for everyone else. Panning needs the same treatment, with arrow buttons or keyboard support.
Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.
Scan your site free