Why it matters
Users with motor impairments who have devices mounted to wheelchairs cannot shake or tilt their device. Others may have tremors causing unintended motion. A UI alternative ensures everyone can access the functionality.
Common violations
- Shake-to-undo with no alternative undo button
- Tilt-to-scroll with no scroll controls
- Device rotation required to change views
- Motion gestures as the only way to dismiss content
Code examples
Bad
window.addEventListener('devicemotion', (e) => {
if (Math.abs(e.acceleration.x) > 15) undoLastAction();
});Good
window.addEventListener('devicemotion', (e) => {
if (!motionEnabled) return;
if (Math.abs(e.acceleration.x) > 15) undoLastAction();
});
// Plus a visible undo button in the UIHow to fix
Provide UI controls (buttons, menus) for every motion-triggered action. Add a setting to disable motion responses. Never rely on device motion as the sole interaction method.
Related criteria
Related resources
Scan your site