We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ceb201 commit ff550b0Copy full SHA for ff550b0
src/react-three/OrbitControls.tsx
@@ -42,6 +42,9 @@ export const OrbitControls: React.FC<OrbitControlsProps> = ({
42
if (zoomSpeed !== undefined) controls.zoomSpeed = zoomSpeed
43
if (enableDamping !== undefined) controls.enableDamping = enableDamping
44
if (dampingFactor !== undefined) controls.dampingFactor = dampingFactor
45
+
46
+ controls.zoomToCursor = true
47
48
if (target) {
49
controls.target.set(target[0], target[1], target[2])
50
controls.update()
0 commit comments