WebXR hand tracking: how it works and how to use it
By the Turbl team · · 11 min read
WebXR hand tracking lets a web page read the position of 25 joints on each of the user's hands, with no controllers. A joint is a tracked point such as a knuckle or a fingertip. You ask for the hand-tracking feature when the session starts. Then you read the joint poses every frame from inputSource.hand. As of November 2026 it works in the Meta Quest Browser, in Safari on Apple Vision Pro and in Chrome on Android XR.
How WebXR hand tracking works
WebXR is the browser standard that connects a web page to a headset. If it is new to you, start with what WebXR is.
Hand tracking is an add-on to that standard. It is called the WebXR Hand Input Module. It is a W3C Working Draft, and the latest version is dated 29 October 2026. A Working Draft can still change.
The headset's cameras watch your hands. Software on the headset turns the camera images into a hand skeleton. The browser hands that skeleton to your page as 25 joints per hand:
| Part of the hand | Joints | Names |
|---|---|---|
| Wrist | 1 | wrist |
| Thumb | 4 | thumb-metacarpal, thumb-phalanx-proximal, thumb-phalanx-distal, thumb-tip |
| Each of the four fingers | 5 | metacarpal, phalanx-proximal, phalanx-intermediate, phalanx-distal, tip |
Finger joints carry a prefix: index-finger-, middle-finger-, ring-finger- or pinky-finger-. So the tip of the index finger is index-finger-tip.
Each joint has a pose. A pose is a position plus a rotation. Each joint also has a radius in meters. The radius is the distance from the joint's center to the skin, which is useful for touch tests.
You get joints, not a 3D scan of the hand. There is no hand mesh. The spec also tells browsers to hide details that could identify a person. Hand size, for example, may be rounded to a standard hand model.
How to request hand tracking
Add hand-tracking to the features of the session request:
const session = await navigator.xr.requestSession('immersive-vr', {
optionalFeatures: ['local-floor', 'hand-tracking'],
})
Use optionalFeatures unless your app cannot work without hands. If a required feature is missing, the whole session fails to start. With an optional feature, the session starts and you fall back to controllers.
The spec says the browser must ask the user for consent. On Vision Pro, Safari shows a second prompt for hand tracking after the one for the session. Chrome on Android XR guards hand data with its own permission. Handle a "no" in each case.
Hand tracking works only in immersive sessions (immersive-vr and immersive-ar). Inline sessions never get it.
The October 2026 draft added a session option, handTracking: { frequencyHint: 'high' }. It asks for a faster update rate. It does not request hand tracking by itself, so you still need hand-tracking in the features. The browser may ignore the hint. The draft also warns that a higher rate can use more power and add jitter. Which browsers honor it today is not confirmed.
Reading joint poses
Hands appear in session.inputSources, next to controllers. A source that is a tracked hand has a hand property. It is null for a controller.
function onFrame(time, frame) {
const session = frame.session
session.requestAnimationFrame(onFrame)
for (const source of session.inputSources) {
if (!source.hand) continue
const joint = source.hand.get('index-finger-tip')
const pose = frame.getJointPose(joint, refSpace)
if (!pose) continue // tracking is lost this frame
const { x, y, z } = pose.transform.position
// source.handedness is 'left' or 'right'
// pose.radius is the joint radius in meters
}
}
refSpace is the reference space you created for the session, for example with session.requestReferenceSpace('local-floor').
Two details matter:
- All or nothing. When part of a hand is hidden, the browser either estimates the hidden joints or returns
nullfor every joint of that hand. You never get half a hand. - Bulk reads.
frame.fillPoses(source.hand.values(), refSpace, float32Array)writes all 25 matrices in one call. That needs an array of 25 × 16 numbers. It is faster than 25 calls togetJointPose.
How to detect a pinch
The spec defines no gestures. There is no pinch event in WebXR itself. You have two options.
Option 1: use the select events. The spec makes every hand report the input profile generic-hand-select. An input profile is a name that tells your page what kind of input device it has. This one means the hand has a primary action. The browser picks the gesture, and on Meta Quest it is a pinch of thumb and index finger. The session then fires selectstart, select and selectend, the same events a controller trigger fires. Code written for a trigger usually works with a pinch unchanged.
Apple Vision Pro is the exception. There the select events come from a separate input source, not from the hand. The device section below explains it.
Option 2: measure the distance yourself. Compare the thumb tip with the index tip:
const PINCH_ON = 0.015 // meters
const PINCH_OFF = 0.025
const pinching = { left: false, right: false }
function updatePinch(source, frame) {
const thumb = frame.getJointPose(source.hand.get('thumb-tip'), refSpace)
const index = frame.getJointPose(source.hand.get('index-finger-tip'), refSpace)
if (!thumb || !index) return
const a = thumb.transform.position
const b = index.transform.position
const distance = Math.hypot(a.x - b.x, a.y - b.y, a.z - b.z)
const side = source.handedness
if (!pinching[side] && distance < PINCH_ON) pinching[side] = true
else if (pinching[side] && distance > PINCH_OFF) pinching[side] = false
}
Note the two thresholds. The pinch starts below 1.5 cm and ends above 2.5 cm. With a single threshold, a jittery hand flickers between pinched and open. The gap between the two values is called hysteresis. three.js uses the same numbers: 2 cm, plus or minus 0.5 cm.
Use the same idea for other gestures. A fist is all four fingertips close to the wrist. A point is the index tip far from the wrist while the other tips are close.
Device support for WebXR hand tracking
Status as of November 2026:
| Device and browser | Hand tracking in WebXR | Notes |
|---|---|---|
| Meta Quest, Meta Quest Browser | Yes | MDN lists support since browser version 15.1 (April 2021) |
| Apple Vision Pro, Safari | Yes, after a second permission prompt | Your page must draw the hands |
| Android XR (Samsung Galaxy XR), Chrome | Yes | Hands are the default input |
| Pico 4 Ultra, built-in browser | Yes, per Pico | Pico's developer page lists WebXR Hand Input. Not tested by us |
| Desktop Chrome | MDN lists the API since Chrome 131 | Not tested by us with a PC headset |
| Firefox | No | |
| Steam Frame | No | The headset has no bare-hand tracking |
Meta Quest. Hands show up as input sources next to controllers. A pinch arrives as a button press on the hand's input source. One gesture is reserved for the system on both hands: the palm pinch. You look at your palm at eye level and hold thumb and index finger together. On the left hand it works like the menu button and takes the user out of your session. Do not build a game action that looks like it.
Apple Vision Pro. WebXR has been on by default in Safari since visionOS 2, released in September 2024. Without hand tracking, Safari gives you only a "transient pointer". That is an input that exists while the user pinches and vanishes on release. With hand-tracking granted, the two hands come first in inputSources, and the transient pointers follow. The hand sources give poses only. All select events come from the transient pointers. So code that listens only to inputs 0 and 1 gets no pinches. Apple also says that once you request hand tracking, you must draw the hands yourself. Without hand tracking, Safari shows the user's real hands. Apple described this behavior for visionOS 2 in June 2024. More detail is in the guide to WebXR on Apple Vision Pro.
Android XR. Google's documentation says hand input is the primary way to interact, and that Chrome supports the Hand Input API as the default input. If your app assumes controllers, it needs work here.
Steam Frame. A SteamOS beta from November 2026 turned on WebXR in Chromium on the headset, according to GamingOnLinux. The headset itself has no controller-free hand tracking. Road to VR's review from September 2026 lists that as a missing feature. Plan for controllers only.
For the wider picture, see WebXR browser support.
How frameworks wrap it
You rarely call getJointPose by hand. Every major WebXR library ships a hand layer.
| Library | How you get hands | Pinch |
|---|---|---|
| three.js | renderer.xr.getHand(0) plus XRHandModelFactory | pinchstart and pinchend events |
React Three Fiber (@react-three/xr) | On by default through createXRStore() | Arrives as normal pointer events such as onClick |
| Babylon.js | On by default in the default XR experience since 6.40.0 | Pointer down, move and up events, one pointer per hand |
| A-Frame | hand-tracking-controls component | pinchstarted, pinchmoved, pinchended events |
In three.js it looks like this:
import { XRHandModelFactory } from 'three/addons/webxr/XRHandModelFactory.js'
const hand = renderer.xr.getHand(0)
hand.add(new XRHandModelFactory().createHandModel(hand))
scene.add(hand)
hand.addEventListener('pinchstart', (event) => {
console.log(event.handedness, 'pinch started')
})
const tip = hand.joints['index-finger-tip'] // an Object3D, once tracked
You still have to request the feature. The official hand input example passes { requiredFeatures: ['hand-tracking'] } as the second argument of VRButton.createButton. Use optionalFeatures there if your app also works with controllers. The pinchstart and pinchend names come from the three.js source as of November 2026 (version 0.187).
In @react-three/xr, the store option handTracking defaults to true, except on Apple Vision Pro, where it defaults to false. You read a hand with useXRInputSourceState('hand', 'right'). It returns undefined while that hand is not tracked. The raw joints are at state.inputSource.hand. The React Three Fiber VR tutorial shows the full setup.
If you do not write code, an AI builder can do this part. Turbl builds WebXR games from a description, and they can use hand tracking without controllers. It targets Meta Quest first. Games are single player only.
Design limits of hands
Hands are not controllers with the buttons removed. Plan for these limits.
- No buttons and no thumbstick. You have poses and gestures, nothing else. Movement that used a thumbstick needs a new idea, such as pinch to teleport.
- No haptics. A hand cannot vibrate. Meta's guidelines call sound and visual feedback essential for that reason. Confirm every action with both.
- Tracking loss. Cameras must see the hand. Meta's guidelines say hands resting by the thighs or held against the cheek are not detected. One hand covering the other lowers accuracy. The guidelines also list long sleeves, large rings and low light as problems.
- Fast movement. Horizon OS, the Quest system, tracks hands at 30 Hz by default, according to Meta's design pages (updated August 2026). Meta states this for the system and does not say what rate the browser gets. VR on Quest usually draws 72 frames per second or more, so at 30 Hz new hand data arrives less often than new frames. A fast throw can lose the exact moment of release. Meta notes that movement away from the body, like a punch, tracks better than movement across the view.
- Jitter. Joint positions shake a little even when the hand is still.
- Tired arms. Holding hands up for minutes is hard work. Meta advises against making users hold their hands above heart level. It recommends interactions that let the arms rest at the sides.
Patterns that work
- Poke for near things. Test the index fingertip against a button. Use the joint radius. Make buttons large and move them visibly when pressed.
- Pinch for far things. Aim with the hand's ray (
targetRaySpace) and pinch to select. On Quest the browser supplies a ray that behaves like the one in the system menus. It assumes the target is in front of the user and always points roughly forward. - Grab by proximity. Start a grab when a pinch begins near an object, and hold it until the pinch ends. The article on grabbing and throwing in VR covers the details.
- Smooth throws. Average the hand's velocity over the last few frames instead of using the last one.
- One-handed where you can. It avoids one hand hiding the other, and it helps people who can use only one hand.
- Keep a controller path. Meta lists long fingernails, some nail polish and hand tattoos among the things that can lower tracking accuracy. Controllers are the reliable fallback.
- Freeze, do not drop. When poses turn
null, keep a held object where it was for a moment. Dropping it on every lost frame feels broken.
You can try most of this without a headset. Emulators simulate hands and pinches, as described in how to test WebXR without a headset. They do not simulate jitter or tracking loss, so test on a real device before you ship.
FAQ
Does Meta Quest support WebXR hand tracking?
Yes. The Meta Quest Browser exposes the WebXR Hand Input API, with 25 joints per hand. MDN lists support since browser version 15.1, which came out in April 2021.
How many joints does WebXR hand tracking give you?
25 per hand. That is the wrist, four joints for the thumb and five for each of the other four fingers. The fingertips count as joints. A device that cannot track a joint must estimate it, so the count is always 25.
Is there a pinch event in WebXR?
Not in the standard itself. On Meta Quest a pinch fires the normal selectstart, select and selectend events. On Apple Vision Pro those events come from a separate transient pointer input. Libraries add their own, such as pinchstart in three.js and pinchstarted in A-Frame. You can also measure the distance between thumb-tip and index-finger-tip.
Does WebXR hand tracking work on Apple Vision Pro?
Yes, in Safari, if your page requests hand-tracking and the user allows it. The hands then deliver joint poses only. Pinch events still come from separate transient pointer inputs. Your page has to draw the hands.
Can hands and controllers be used in the same app?
Yes, and you should support both. Both show up in session.inputSources. Check source.hand to tell them apart, and listen for the inputsourceschange event to react when the user switches.
Can hand tracking give haptic feedback?
No. There is nothing on the hand to vibrate. Use sound, color changes and motion to confirm that a touch or grab worked.
Sources
- WebXR Hand Input Module, Level 1 (Working Draft, 29 October 2026), W3C
- Immersive VR Session with Hands sample, Immersive Web Working Group
- WebXR Device API (primary action and select events), W3C
- XRHand, MDN Web Docs
- XRHand browser compatibility data, MDN
- WebXR Hands, Meta
- Hands: limitations and mitigations, Meta
- Hands technology, Meta
- Hands: best practices, Meta
- Introducing natural input for WebXR in Apple Vision Pro, WebKit
- Build immersive web experiences with WebXR (WWDC24), Apple
- visionOS 2 enables WebXR by default, UploadVR
- Develop with WebXR on Android XR, Google
- PICO 4 Ultra developer page, PICO
- Steam Frame Review: Power-user's Playground, Road to VR
- SteamOS 0.5.7 Beta for Steam Frame brings WebXR, GamingOnLinux
- WebXRController.js source, three.js
- webxr_vr_handinput example, three.js
- Store options, pmndrs/xr
- Custom inputs tutorial, pmndrs/xr
- WebXR Hand Tracking feature, Babylon.js
- hand-tracking-controls, A-Frame