Browse Source

Fix middle-click zooming error

Satori 9 years ago
parent
commit
4cd469308d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/controls/OrbitControls.js

+ 2 - 2
examples/js/controls/OrbitControls.js

@@ -479,11 +479,11 @@ THREE.OrbitControls = function ( object, domElement ) {
 
 		if ( dollyDelta.y > 0 ) {
 
-			dollyIn( scope.getZoomScale() );
+			dollyIn( getZoomScale() );
 
 		} else if ( dollyDelta.y < 0 ) {
 
-			dollyOut( scope.getZoomScale() );
+			dollyOut( getZoomScale() );
 
 		}