Skip to content

Conversation

@seonglae
Copy link
Member

Summary

  • Save camera position and target to localStorage on control updates
  • Restore saved camera position on page load
  • Debounced saving (500ms) to avoid excessive writes
  • Export DEFAULT_CAMERA constant for future reset functionality

How it works

  1. On page load, checks localStorage for saved camera state
  2. If found, restores camera to saved position/target
  3. On every camera movement, saves position after 500ms debounce
  4. Falls back to default initial view if no saved state

Test plan

  • Navigate camera to a specific location
  • Refresh the page
  • Verify camera returns to saved location
  • Clear localStorage and verify default view loads

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
pointland Ready Ready Preview, Comment Dec 31, 2025 0:24am

- Save camera position and target on control updates (debounced 500ms)
- Restore saved camera position on page load
- Add localStorage helpers for camera state management
- Export DEFAULT_CAMERA for future reset functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Change from setTarget to setLookAt to properly set both position and target
- Ensures camera restores to correct position on page load
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.

2 participants