Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add persisted setting for model auto-rotate behavior #105

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

franknoirot
Copy link
Collaborator

Per user feedback, some people would like to have models not auto-rotate by default so that they can inspect an area more closely and leave it without losing their place.

My quick solution for this is to include a toggle in the "footer" of the model view page to toggle the auto-rotation behavior. This persists a "user settings" object in browser storage with just one boolean setting for the time being, which controls auto-rotate. This will allow us to extend user settings into a full menu in the near future as we get more configuration requests.

Demo

auto-rotate-toggle-demo-compressed.mp4

@franknoirot franknoirot added the enhancement New feature or request label Jan 26, 2024
@franknoirot franknoirot requested a review from jessfraz January 26, 2024 19:33
@franknoirot franknoirot self-assigned this Jan 26, 2024
Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
text-to-cad-ui ✅ Ready (Inspect) Visit Preview Jan 26, 2024 7:33pm

@franknoirot franknoirot requested a review from greg-kcio January 26, 2024 19:34
Copy link
Collaborator

@greg-kcio greg-kcio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@franknoirot franknoirot merged commit 0f32fde into main Jan 26, 2024
3 checks passed
@franknoirot franknoirot deleted the stop-autorotate branch January 26, 2024 19:57
@jgomez720
Copy link
Contributor

sick

@jgomez720 jgomez720 requested review from jgomez720 and removed request for jgomez720 January 26, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants