Replies: 1 comment 3 replies
-
If this feature is important to you, you can add a mouse/touch event listener to toggle |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Auto rotation is great... until the user doesn't want it. There's currently no built-in mechanism for the user to enable/disable auto rotation at runtime, you either have it turned on or off. It's pretty easy to use the API to cancel auto-rotation on user interaction (camera-change), but then there's no way to start it again if the user wants to.
It would be nice to have built-in options enabling the user to 1) cancel auto rotation when they first interact with the model, and 2) some way of re-starting auto rotation. An intuitive way would be to detect them "throwing" the model left or right (eg drag-and-release with inertia), and then turn on auto-rotation in this direction. Models already appear to have inertia when thrown this way, so hopefully this would not be hard to add.
Options could potentially be something like:
auto-rotate-policy="always" // this would be like current functionality
auto-rotate-policy="until-interaction" // only auto rotate until the user has interacted with the model
auto-rotate-policy="throw" (or maybe "auto"?) // as "until-interaction", but user can restart auto rotation by "throwing" left or right
Beta Was this translation helpful? Give feedback.
All reactions