Explorar o código

Fix middle-click zooming error

Satori %!s(int64=9) %!d(string=hai) anos
pai
achega
4cd469308d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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() );
 
 		}