coderef

Hand inputLimited availability

An XRHand object, from the hand attribute of an XRInputSource object, represents a WebXR session's fully-articulated hand tracking model.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–130Not supported
131+Supportedsince Nov 12, 2024
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–130Not supported
131+Supportedsince Nov 12, 2024
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Edge, Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: fillJointRadii.

Feature detection

JS · check before using
if ("XRInputSource" in globalThis && "hand" in XRInputSource.prototype) {
  // XRInputSource.hand is available
}

Sub-features

Support for each part of the feature (16). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
XRFrame.fillJointRadii131✕✕✕131✕✕
XRFrame.fillPoses131✕✕✕131✕✕
XRFrame.getJointPose131✕✕✕131✕✕
XRHand131✕✕✕131✕✕
XRHand.@@iterator131✕✕✕131✕✕
XRHand.entries131✕✕✕131✕✕
XRHand.forEach131✕✕✕131✕✕
XRHand.get131✕✕✕131✕✕
XRHand.keys131✕✕✕131✕✕
XRHand.size131✕✕✕131✕✕
XRHand.values131✕✕✕131✕✕
XRInputSource.hand131✕✕✕131✕✕
XRJointPose131✕✕✕131✕✕
XRJointPose.radius131✕✕✕131✕✕
XRJointSpace131✕✕✕131✕✕
XRJointSpace.jointName131✕✕✕131✕✕