---
title: "Introducing Natural Input for WebXR in Apple Vision Pro"
description: "Safari 17.4 on visionOS 1.1 adds a `transient-pointer` WebXR input mode, behind a flag, that maps Apple Vision Pro's gaze-and-pinch natural input onto XRInputSources."
url: "https://swe.quest/articles/introducing-natural-input-for-webxr-in-apple-vision-pro-9b78b96658d8695d"
canonical: "https://webkit.org/blog/15162/introducing-natural-input-for-webxr-in-apple-vision-pro/"
source: "WebKit"
published: "2024-03-19"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["browsers","frontend","javascript"]
---

# Introducing Natural Input for WebXR in Apple Vision Pro

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-03-19, 6 min read, How-to. Original: [https://webkit.org/blog/15162/introducing-natural-input-for-webxr-in-apple-vision-pro/](https://webkit.org/blog/15162/introducing-natural-input-for-webxr-in-apple-vision-pro/)

## Summary

Safari 17.4 on visionOS 1.1 adds a \`transient-pointer\` WebXR input mode, behind a flag, that maps Apple Vision Pro's gaze-and-pinch natural input onto XRInputSources. Each input exists only for the duration of a pinch and fires inputsourceschange, selectstart, select and selectend on the session. Its targetRaySpace starts from the user's gaze and then follows the hand, and its gripSpace tracks the pinch location. When hand tracking is granted, the persistent tracked-pointer hands occupy indices 0 and 1, so frameworks like Three.js that only check those indices miss selections. Objects should be attached to gripSpace rather than targetRaySpace, and the post covers testing in the visionOS Simulator.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- WebXR Device API basics
- WebGL 3D rendering

## Keywords

WebXR, visionOS, Apple Vision Pro, Safari, transient-pointer, Three.js, XRInputSource

## Related posts

- [Try out your website in the spatial web](https://swe.quest/articles/try-out-your-website-in-the-spatial-web-5164ff9af4fcad84.md): WebKit · 2024-06-12 · Medium · 6 min read · Browsers, Developer tools, Debugging
  Websites generally need no special changes to work in Safari on visionOS, which runs the same WebKit engine.
- [News from WWDC23: WebKit Features in Safari 17 beta](https://swe.quest/articles/news-from-wwdc23-webkit-features-in-safari-17-beta-56e2385f10cea4f8.md): WebKit · 2023-06-06 · Medium · 26 min read · Browsers, Frontend, CSS, Video & media
  Safari 17 beta brings 88 web features. Mac users can add any website to the Dock as a web app: cookies are copied over and web push and badging are supported.
- [A step into the spatial web: The HTML model element in Apple Vision Pro](https://swe.quest/articles/a-step-into-the-spatial-web-the-html-model-element-in-apple-vision-pro-20ba85e34f088d57.md): WebKit · 2025-06-27 · Medium · 7 min read · Browsers, Frontend
  visionOS 26 enables the HTML \`model\` element by default in Safari on Apple Vision Pro, rendering USDZ 3D assets stereoscopically inline within web pages.
- [News from WWDC24: WebKit in Safari 18 beta](https://swe.quest/articles/news-from-wwdc24-webkit-in-safari-18-beta-f6c733f3db9a46ad.md): WebKit · 2024-06-10 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas.
- [Introducing spatial CSS: A developer preview](https://swe.quest/articles/introducing-spatial-css-a-developer-preview-055662575217fccc.md): WebKit · 2026-11-16 · Medium · 7 min read · CSS, Browsers, Frontend
  Safari on visionOS 27.3 ships a developer preview of the proposed spatial CSS API, which routes 3D scene composition through declarative CSS built around the \`\<model\>\` element. \`spatial: portal\` turns a container into a shared 3D space where child models are moved with true 3D \`transform\`, snapped together via \`position-anchor\` and \`position-context: anchor\` against named empties exported from tools like Blender, and lit with reusable \`@environment-map\` rules using equirectangular HDR images. \`portal-action: orbit\` lets users rotate the scene, and \`requestVolumetricScene()\` pops the portal out into a live-linked volumetric scene in the user's space.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
