Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Haptics/explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ The parameters for `navigator.playHaptics`:

The API always returns `undefined`. No haptics is played if the last input device is not haptics-capable.

The table below illustrates example mappings of the pre-defined effects (Hover, Edge, Tick, Align) to representative platform-native feedback patterns across Windows, macOS, iOS, and Android. These mappings are illustrative examples only. User agents may choose different mappings, including synthesizing custom effects from lower-level primitives and parameters. The API standardizes the developer-facing intent, while the underlying realization remains platform-defined.

| Web Haptics | Windows | MacOS | iOS | Android |
|:-----------:|:-------:|:-----:|:---:|:-------:|
| Hover | hover | generic | light impact | gesture_threshold_deactivate |
| Edge | collide | generic | soft impact | long_press |
| Tick | step | generic | selection | segment_frequent_tick |
| Align | align | alignment | rigid impact | segment_tick |

## Sample code
```html
<html>
Expand Down