-
Notifications
You must be signed in to change notification settings - Fork 226
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
Disable double click to change view angle. #392
Comments
One way would be to use the DropInViewer in a THREE.Scene and implement custom controls. It's well documented. |
Or disable useBuiltInControls (linked to splat interaction). Guess it does serve its purpose though, when you disable the re-center, the object needs to be perfectly aligned from the start. |
Thanks! But this also disables rotation which we do want to have. |
I used a little hack to prevent the click in some cases that I want the viewer to ignore a click/press: GaussianSplats3D/src/Viewer.js Line 542 in 2dfc83e
It won't register it as a click (it won't call the onMouseClick method) Alternatively you could disable useBuiltInControls and set autoRotate on your own orbit control object , since autoRotate is a default property, see: https://threejs.org/docs/#examples/en/controls/OrbitControls |
Disable double click to change view angle.
Im not a dev myself but when using the viewer and double clicking the mouse, the camera changes angle accordingly. Our issue is that we dont want users to be able to place the model off it's center, this affects the rotation centerpoint.
So i asked my dev to disable the double click and he responded that it is coded in the viewer and can't be tuned off. Is that so? And if so, can we keep the double click but not let the anchor point change when using it. This way the camera angle changes but rotation still happends in the center of the model.
Thx
The text was updated successfully, but these errors were encountered: