镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add Web Haptics API sample - #1150

Open
rob-pitkin wants to merge 1 commit into
GoogleChrome:gh-pagesfrom
rob-pitkin:web-haptics-sample
Open

rob-pitkin wants to merge 1 commit into
GoogleChrome:gh-pagesfrom
rob-pitkin:web-haptics-sample

Conversation

@rob-pitkin

Copy link
Copy Markdown

Add Web Haptics API sample

Adds an interactive sample page (web-haptics/) for the WICG Web Haptics API (navigator.playHaptics(effect, intensity)), linked to Chrome Platform Status 5128945147838464.

  • Demonstrates all six semantic haptic effects (hint, tick, align, edge, success, error) with adjustable [0.1, 1.0] intensity across five realistic UI controls (Scroll-Snap Carousel using scrollsnapchanging / scrollsnapchange, Stepped Scrubber, Magnetic Alignment Guide, Swipe-to-Confirm, and Form Verification) plus a direct 6-effect palette.
  • Uses runtime feature detection ('playHaptics' in navigator) with visual simulation fallback and chrome://flags instructions while the feature is experimental (check_min_version: false).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant