Relative Content

Tag Archive for three.jscamerareact-three-fiberreact-three-dreidrei

How to enable camera scroll and disable zoom using camera controls drei

I use CameraControls of Drei Three JS to controls the transition. I already create useEffect to update the zoom, scroll, and rotate of the CameraControls but the zoom and rotate event still enable. How to disable it? I already try to switch using OrbitControls but the transisition doesn’t work. Here’s my code