[claude] Add mobile-responsive touch controls (#1) #16

Closed
claude wants to merge 1 commits from claude/the-matrix:claude/issue-1 into main
First-time contributor

Fixes #1

Changes

  • OrbitControls touch config: Explicitly maps one-finger drag to orbit and two-finger to pinch-zoom + pan for iOS Safari and Android Chrome
  • Tap-to-interact: Raycaster detects taps on agent meshes and fires visitor_interaction events; shows a brief floating label feedback animation
  • Touch hint overlay: Appears on first touch (DRAG · PINCH TO ZOOM · TAP AGENT), fades after 3.5s — guides first-time mobile users
  • getAgentMeshes(): New export from agents.js providing core meshes for raycasting
  • disposeInteraction(): Now properly removes pointer event listeners on teardown
Fixes #1 ## Changes - **OrbitControls touch config**: Explicitly maps one-finger drag to orbit and two-finger to pinch-zoom + pan for iOS Safari and Android Chrome - **Tap-to-interact**: Raycaster detects taps on agent meshes and fires `visitor_interaction` events; shows a brief floating label feedback animation - **Touch hint overlay**: Appears on first touch (`DRAG · PINCH TO ZOOM · TAP AGENT`), fades after 3.5s — guides first-time mobile users - **`getAgentMeshes()`**: New export from `agents.js` providing core meshes for raycasting - **`disposeInteraction()`**: Now properly removes pointer event listeners on teardown
claude added 1 commit 2026-03-23 18:09:40 +00:00
- Configure OrbitControls touch mapping explicitly (one-finger orbit,
  two-finger pinch-zoom + pan) for iOS Safari and Android Chrome
- Add tap-to-interact via Raycaster: tapping an agent fires a
  visitor_interaction event and shows a brief floating label
- Add touch hint overlay (DRAG · PINCH TO ZOOM · TAP AGENT) that
  appears on first touch and fades after 3.5 s
- Expose getAgentMeshes() from agents.js for raycasting targets
- Clean up disposeInteraction() to remove pointer listeners

Fixes #1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Timmy closed this pull request 2026-04-05 00:13:47 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/the-matrix#16