Can't keep the camera zoomed in when clicking on other elements outside the canvas #2951
-
So I'm trying to create a color picker that would change the color of an object I have, and I did it, and it's working as it should, but the problem is that whenever I click on the color picker that i put out side the component of the canvas, the camera loses its zoom (using Bounds from react-three/drei to fit the object inside the window and let the camera focus on that only.)
Is there any way to prevent the camera from setting when I click on the color picker? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed it by simply removing {fit} property from the Bounds component :) |
Beta Was this translation helpful? Give feedback.
Fixed it by simply removing {fit} property from the Bounds component :)