BloxwapHaptic

Platforms and accessibility

Physical iOS taps, browser vibration, hydration, and device verification.

iOS

By default, Haptic preserves the original pointer and click events. On iOS WebKit without vibration it stays silent. Set iosPhysicalTap to opt into the native switch overlay on a button or link that has no nested controls. That overlay intercepts pointer handlers, forwards an untrusted click without the original modifiers, coordinates or click count, and exposes auxiliary clicks to ancestor capture handlers. Keep it off for gesture controls, modified links, or capture-based actions. Unsupported hosts keep their original interaction without an overlay. A physical tap can produce the platform's system tick. Synthetic clicks, timers, and asynchronous callbacks cannot promise physical iOS feedback. Choosing a preset or intensity does not change that tick.

WebKit introduced its switch control in Safari 17.4. That is a control baseline, not a claim that every device or OS version has been physically tested. System-haptic settings and hardware capability still matter.

The imperative API reports iOS unavailable, including inside a synchronous click handler. WebKit requires trusted switch events; navigator.userActivation.isActive alone cannot certify a programmatic tick. The physical target remains the iOS interaction route.

Vibration-capable browsers

Browsers exposing navigator.vibrate use the shared bounded encoder for the selected input and options, including when that API is installed after the bundle evaluates. If that API exists on an iOS-like device, it takes priority. An accepted API call does not prove that hardware physically vibrated.

Other devices

Targets keep their original action even when feedback is unavailable. Desktop audio preview is opt-in through webHapticsOptions.debug. An iPadOS identity can choose the native routing path without proving that the iPad has suitable haptic hardware.

Accessibility and interaction

Keep the original control's semantic role, label, and keyboard behavior. Native feedback controls are hidden from assistive technology and add no tab stop. The original ref and focus target remain intact.

enabled={false} and disabled={true} suppress feedback without disabling the target's action. Native disabled, aria-disabled="true", and inert hosts suppress feedback. Scrolling, canceled gestures, and drags do not become actions.

Certification status

Not hardware-certified

Physical-device and VoiceOver certification is still open in issue #9. Automated Chromium and WebKit tests establish browser interaction behavior; they cannot establish tactile output.

The release checklist requires a recorded iPhone/Safari and Android/Chrome matrix with device model, OS/browser versions, settings, feedback observations, and target behavior. No unperformed hardware result is represented as a pass.

Edit on GitHub

On this page