- Success Criterion 2.5.4
- Conformance level A
Tilt-Based Scrolling With No Conventional Control Option
2.5.4 — Motion Actuation
Scenario
Setting
A fitness app's workout tracker
What’s wrong
Tilt-based scrolling/parallax input without a conventional control.
Example
window.addEventListener('deviceorientation', (e) => {
workoutList.scrollTop += e.beta * 2; // tilt is the only way to scroll the list
}); Why it matters
A person exercising with the phone mounted on a treadmill can't tilt it to scroll and gets stuck on the first exercise.
How to test
Try to scroll/trigger parallax via a conventional control instead of tilting: if tilt is the only input method, it fails.
How to fix
Remove the tilt handler, or make it opt-in, and rely on ordinary scrolling as the default.
.workout-list { overflow-y: auto; touch-action: pan-y; } Outcome
A user scrolls the workout list with a normal swipe or trackpad, with no tilting required.
Who is affected
Wheelchair users with a mounted device, people with limited wrist rotation, and anyone using the app hands-free on a stand.
Learn more
- Understanding Understanding document (opens in a new tab)