-
Notifications
You must be signed in to change notification settings - Fork 743
PivotControls does not stop CameraControls from moving the camera #2408
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
Comments
Hi, if you add the makeDefault prop to CameraControls, will that solve your problem? |
I've updated the code sandbox and it is working. But I've just realized that this is under React 18, while I'm using React 19. I've also updated the code sandbox to represent the same version I am using. And it is working. So there is something else going on... I'll circle back. EDIT: On my local machine, when doing the same thing (although with a bit more complexity due to monorepo), I get a looping error as below.
|
three
version: 0.174.0@react-three/fiber
version: 9.1.0@react-three/drei
version: 10.0.4node
version: v22.14.0pnpm
version: 10.6.3Problem description:
When using
PivotControls
withOrbitControls
, the orbit control are "deactivated" when dragging the pivot controls. However, when usingCameraControls
, the camera is rotating as we move the pivot controls.Relevant code:
https://codesandbox.io/p/sandbox/cameracontrols-basic-forked-dgglkz
Suggested solution:
The text was updated successfully, but these errors were encountered: