interop
interop copied to clipboard
Vibration API
Description
Haptics are vital to games + professional feel of buttons, switches, and other user input for mobile/tablet web.
Since Vibration API's inception on Android (launched in Firefox, 12 years ago), I haven't heard of a single real user complaint. Reasonable guardrails on Vibration API are welcome.
iOS 18.0 WebKit has added non-standard haptics to switch checkbox elements (and only to switch inputs?) displaying a need for haptics and how incongruous it is to exclude haptics from touch devices on the web.
Specification
https://www.w3.org/TR/vibration/
Additional Signals
https://stackoverflow.com/questions/56926591/navigator-vibrate-break-the-code-on-ios-browsers