Use this technique on web pages that detect device or user motion such as shaking or tilting and use this motion as a means of input. If the motion itself is essential to the application's function, then this technique does not apply.
This technique also does not relate to movement of users through space as registered by geolocation sensors or beacons, or events observed by the device other than intentional gesturing by the user. It also does not cover indirect motion associated with operating a keyboard, pointer, or assistive technology.
The objective of this technique is to ensure that:
When a device sensor such as an accelerometer or gyroscope is used to gather input:
After text is entered in a field, shaking a device shows a dialog offering users to undo the entry. Supporting use of the backspace key and/or providing a clear button next to the text field offers the same functionality.
Shake to undo can be turned off in a settings page.
A slider can be adjusted by tipping the device to the left and right. There are also buttons to achieve the same functionality, and a tick-box that prevents the motion from having an effect.
Working example of a slider with motion actuation.
For each input that performs a function in response to a motion sensor: