@@ -60,7 +60,7 @@ THREE.EditorControls = function ( object, domElement ) {
60
60
61
61
var distance = object . position . distanceTo ( center ) ;
62
62
63
- delta . multiplyScalar ( distance * this . panSpeed ) ;
63
+ delta . multiplyScalar ( distance * scope . panSpeed ) ;
64
64
delta . applyMatrix3 ( normalMatrix . getNormalMatrix ( object . matrix ) ) ;
65
65
66
66
object . position . add ( delta ) ;
@@ -74,7 +74,7 @@ THREE.EditorControls = function ( object, domElement ) {
74
74
75
75
var distance = object . position . distanceTo ( center ) ;
76
76
77
- delta . multiplyScalar ( distance * this . zoomSpeed ) ;
77
+ delta . multiplyScalar ( distance * scope . zoomSpeed ) ;
78
78
79
79
if ( delta . length ( ) > distance ) return ;
80
80
@@ -147,7 +147,7 @@ THREE.EditorControls = function ( object, domElement ) {
147
147
148
148
if ( state === STATE . ROTATE ) {
149
149
150
- scope . rotate ( new THREE . Vector3 ( - movementX * this . rotationSpeed , - movementY * this . rotationSpeed , 0 ) ) ;
150
+ scope . rotate ( new THREE . Vector3 ( - movementX * scope . rotationSpeed , - movementY * scope . rotationSpeed , 0 ) ) ;
151
151
152
152
} else if ( state === STATE . ZOOM ) {
153
153
@@ -270,7 +270,7 @@ THREE.EditorControls = function ( object, domElement ) {
270
270
case 1 :
271
271
touches [ 0 ] . set ( event . touches [ 0 ] . pageX , event . touches [ 0 ] . pageY , 0 ) ;
272
272
touches [ 1 ] . set ( event . touches [ 0 ] . pageX , event . touches [ 0 ] . pageY , 0 ) ;
273
- scope . rotate ( touches [ 0 ] . sub ( getClosest ( touches [ 0 ] , prevTouches ) ) . multiplyScalar ( - this . rotationSpeed ) ) ;
273
+ scope . rotate ( touches [ 0 ] . sub ( getClosest ( touches [ 0 ] , prevTouches ) ) . multiplyScalar ( - scope . rotationSpeed ) ) ;
274
274
break ;
275
275
276
276
case 2 :
0 commit comments