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

Disable double click to change view angle. #392

Open
lolo2k opened this issue Dec 13, 2024 · 1 comment
Open

Disable double click to change view angle. #392

lolo2k opened this issue Dec 13, 2024 · 1 comment

Comments

@lolo2k
Copy link

lolo2k commented Dec 13, 2024

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

@seppestaes
Copy link

One way would be to use the DropInViewer in a THREE.Scene and implement custom controls. It's well documented.

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

No branches or pull requests

2 participants