|
@@ -414,7 +414,7 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
|
|
|
|
}();
|
|
}();
|
|
|
|
|
|
- function dollyIn( dollyScale ) {
|
|
|
|
|
|
+ function dollyOut( dollyScale ) {
|
|
|
|
|
|
if ( scope.object.isPerspectiveCamera ) {
|
|
if ( scope.object.isPerspectiveCamera ) {
|
|
|
|
|
|
@@ -435,7 +435,7 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function dollyOut( dollyScale ) {
|
|
|
|
|
|
+ function dollyIn( dollyScale ) {
|
|
|
|
|
|
if ( scope.object.isPerspectiveCamera ) {
|
|
if ( scope.object.isPerspectiveCamera ) {
|
|
|
|
|
|
@@ -504,11 +504,11 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
|
|
|
|
if ( dollyDelta.y > 0 ) {
|
|
if ( dollyDelta.y > 0 ) {
|
|
|
|
|
|
- dollyIn( getZoomScale() );
|
|
|
|
|
|
+ dollyOut( getZoomScale() );
|
|
|
|
|
|
} else if ( dollyDelta.y < 0 ) {
|
|
} else if ( dollyDelta.y < 0 ) {
|
|
|
|
|
|
- dollyOut( getZoomScale() );
|
|
|
|
|
|
+ dollyIn( getZoomScale() );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -542,11 +542,11 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
|
|
|
|
if ( event.deltaY < 0 ) {
|
|
if ( event.deltaY < 0 ) {
|
|
|
|
|
|
- dollyOut( getZoomScale() );
|
|
|
|
|
|
+ dollyIn( getZoomScale() );
|
|
|
|
|
|
} else if ( event.deltaY > 0 ) {
|
|
} else if ( event.deltaY > 0 ) {
|
|
|
|
|
|
- dollyIn( getZoomScale() );
|
|
|
|
|
|
+ dollyOut( getZoomScale() );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -716,7 +716,7 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
|
|
|
|
dollyDelta.set( 0, Math.pow( dollyEnd.y / dollyStart.y, scope.zoomSpeed ) );
|
|
dollyDelta.set( 0, Math.pow( dollyEnd.y / dollyStart.y, scope.zoomSpeed ) );
|
|
|
|
|
|
- dollyIn( dollyDelta.y );
|
|
|
|
|
|
+ dollyOut( dollyDelta.y );
|
|
|
|
|
|
dollyStart.copy( dollyEnd );
|
|
dollyStart.copy( dollyEnd );
|
|
|
|
|