interop icon indicating copy to clipboard operation
interop copied to clipboard

Vibration API

Open shalanah opened this issue 5 months ago • 2 comments

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

shalanah avatar Sep 18 '24 17:09 shalanah