Skip to content

Commit a34db15

Browse files
committed
Make OrbitControls.update() respect Controls.enabled
1 parent 55c095d commit a34db15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/jsm/controls/OrbitControls.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ class OrbitControls extends Controls {
596596

597597
update( deltaTime = null ) {
598598

599+
if ( ! this.enabled ) return;
600+
599601
const position = this.object.position;
600602

601603
_v.copy( position ).sub( this.target );

0 commit comments

Comments
 (0)