Skip to content

Add panorama-viewer gyro tilt-to-look and marker drag (0.2.0) - #47

Merged
jeffgo10 merged 1 commit into
masterfrom
feat/panorama-viewer-gyro-and-marker-drag
Aug 11, 2026
Merged

Add panorama-viewer gyro tilt-to-look and marker drag (0.2.0)#47
jeffgo10 merged 1 commit into
masterfrom
feat/panorama-viewer-gyro-and-marker-drag

Conversation

@jeffgo10

Copy link
Copy Markdown
Owner

Summary

Bumps @jeffgo10/panorama-viewer to 0.2.0 for RoamVantage / Vantage: mobile tilt-to-look (Pannellum device orientation) and edit-mode marker drag. Existing props stay stable; gyro is view-mode only so edit click-to-place and drag-vs-click keep working.

Changes

Packages (@jeffgo10/panorama-viewer)

  • Add orientationControl, orientationOnByDefault, onOrientationChange
  • Add handle methods: startOrientation, stopOrientation, isOrientationAvailable, isOrientationActive
  • Add helpers: deviceOrientationPermissionRequired, isOrientationControlEnabled
  • Add edit-mode hotspot drag via onMarkerMove (structural vs position keys; no remount on yaw/pitch)
  • Document iOS Safari permission / HTTPS constraints in README + CHANGELOG
  • Unit tests for orientation wiring, handle methods, and marker drag

Docs app (apps/docs)

  • Enable orientationControl in VIEW on /panorama; surface gyro on/off in last-event line

Docs / Cursor rules

  • Update docs/panorama-viewer/* and pin table in ls-foundry-core.mdc to 0.2.0

Commits

SHA Message
84a5c34 Add panorama-viewer gyro tilt-to-look and edit marker drag (0.2.0).

Test plan

  • pnpm test --filter=@jeffgo10/panorama-viewer
  • pnpm run build --filter=@jeffgo10/panorama-viewer
  • pnpm run dev --filter=@ls-foundry/docs/panorama — VIEW shows orientation control; EDIT drag repositions hotspots
  • Manual: iOS Safari HTTPS — tap Enable motion / Pannellum orientation button → allow → tilt; drag still pans
  • Manual: Android Chrome — gyro with orientationControl (optional orientationOnByDefault)

Notes / follow-ups

  • CI publishes @jeffgo10/panorama-viewer@0.2.0 on merge to master (do not publish locally).
  • Consumer: run /update-ls-foundry-packages in roamvantage, then wire orientationControl on PublicTourViewer / demo; add host “Enable motion” button for iOS if needed.

Made with Cursor

- Expose orientationControl / startOrientation for mobile view mode
- Add edit-mode hotspot drag via onMarkerMove without remounting
- Document iOS permission constraints; enable gyro in /panorama demo

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jeffgo10
jeffgo10 merged commit f4300c9 into master Aug 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant