Skip to content

Commit 63e868a

Browse files
authored
Merge pull request #17007 from sciecode/dev-controls
OrbitControls: missing namespace
2 parents d560717 + cc02b0f commit 63e868a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/js/controls/OrbitControls.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ THREE.OrbitControls = function ( object, domElement ) {
998998

999999
switch ( scope.touches.ONE ) {
10001000

1001-
case TOUCH.ROTATE:
1001+
case THREE.TOUCH.ROTATE:
10021002

10031003
if ( scope.enableRotate === false ) return;
10041004

@@ -1008,7 +1008,7 @@ THREE.OrbitControls = function ( object, domElement ) {
10081008

10091009
break;
10101010

1011-
case TOUCH.PAN:
1011+
case THREE.TOUCH.PAN:
10121012

10131013
if ( scope.enablePan === false ) return;
10141014

@@ -1030,7 +1030,7 @@ THREE.OrbitControls = function ( object, domElement ) {
10301030

10311031
switch ( scope.touches.TWO ) {
10321032

1033-
case TOUCH.DOLLY_PAN:
1033+
case THREE.TOUCH.DOLLY_PAN:
10341034

10351035
if ( scope.enableZoom === false && scope.enablePan === false ) return;
10361036

@@ -1040,7 +1040,7 @@ THREE.OrbitControls = function ( object, domElement ) {
10401040

10411041
break;
10421042

1043-
case TOUCH.DOLLY_ROTATE:
1043+
case THREE.TOUCH.DOLLY_ROTATE:
10441044

10451045
if ( scope.enableZoom === false && scope.enableRotate === false ) return;
10461046

0 commit comments

Comments
 (0)