Browse Source

Merge pull request #7601 from satori99/dev

Fix middle-click zooming error in refactored OrbitControls
Mr.doob 9 years ago
parent
commit
28bcdf8f1a
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 ) {
 		if ( dollyDelta.y > 0 ) {
 
 
-			dollyIn( scope.getZoomScale() );
+			dollyIn( getZoomScale() );
 
 
 		} else if ( dollyDelta.y < 0 ) {
 		} else if ( dollyDelta.y < 0 ) {
 
 
-			dollyOut( scope.getZoomScale() );
+			dollyOut( getZoomScale() );
 
 
 		}
 		}