Add gyroscope controls for camera panning on handheld devices - #386
Add gyroscope controls for camera panning on handheld devices#386git-chad wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
…ntrols # Conflicts: # src/components/layout/footer-content.tsx
- Keep permission at "prompt" when the iOS dialog is dismissed
("default" result) so the user can retry instead of being locked out
- Only render the toggle on coarse-pointer devices; desktop browsers
expose DeviceOrientationEvent without hardware and enabling the
toggle there disabled mouse panning
- Replace the dual-label spans that relied on a nonexistent xs
breakpoint with a single label
- Type requestPermission as a static on the constructor instead of
augmenting the instance interface
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Revived this PR and brought it up to date: Merge: merged Fixes (
Verified: Still needs a phone: real-device QA on the Vercel preview — iOS permission prompt flow, Android no-prompt path, and tuning feel of 🤖 Generated with Claude Code |
Note
Introduces gyroscope-driven camera panning on handheld devices, with permission handling, state management, and a user-facing toggle.
camera-hooksto drive pan (replacing pointer when enabled), adds vertical pan, and applies gyroscope-specific smoothinguseGyroscopeStoreto track permission, enabled state, and orientation valuesuseDeviceOrientationhook to request permissions, normalize/smooth orientation, persist preference, and reset calibrationGyroscopeTogglecomponent and wires it intofooter-content(mobile) alongside social links for enabling/disabling the featureWritten by Cursor Bugbot for commit 4aba2bd. This will update automatically on new commits. Configure here.