Skip to content

Commit 47255c9

Browse files
authored
fix(CameraControls): always run cc .update() regardless of .enabled (#2453)
1 parent f47d2c7 commit 47255c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/CameraControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const CameraControls: ForwardRefComponent<CameraControlsProps, CameraCont
114114
const controls = useMemo(() => new CameraControlsImpl(explCamera), [explCamera])
115115

116116
useFrame((state, delta) => {
117-
if (controls.enabled) controls.update(delta)
117+
controls.update(delta)
118118
}, -1)
119119

120120
useEffect(() => {

0 commit comments

Comments
 (0)