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

Docs: Improve OrbitControls page. #26541

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Docs: Improve OrbitControls page. #26541

merged 3 commits into from
Aug 5, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 5, 2023

Related issue: #26472

Description

Honors the latest changes of OrbitControls in the doc page.

@Mugen87 Mugen87 added this to the r156 milestone Aug 5, 2023
@Mugen87 Mugen87 merged commit 6774f1e into mrdoob:dev Aug 5, 2023
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Aug 5, 2023

I had to add webgl2_volume_instancing to the E2E exception list although the screenshot can be properly generated. Not sure why the actual test fails.

Sidenote: At least we can generate screenshots on macOS again 🎉 .

@@ -91,7 +91,7 @@ <h2>Properties</h2>
<h3>[property:Boolean autoRotate]</h3>
<p>
Set to true to automatically rotate around the target.<br> Note that if this is enabled, you must call [page:.update]
() in your animation loop.
() in your animation loop. If you want the animation to be frame rate independent, apply a time delta value to [page:.update]().
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about something like this, instead...

If you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display), you must pass the time deltaTime, in seconds, to page.update().

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That sounds good to me! Do you mind updating the doc pages with your suggestion?

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