1
0
Brian Peiris 7 жил өмнө
parent
commit
5067e5df79

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

@@ -14,7 +14,7 @@ THREE.EditorControls = function ( object, domElement ) {
 	this.enabled = true;
 	this.enabled = true;
 	this.center = new THREE.Vector3();
 	this.center = new THREE.Vector3();
 	this.panSpeed = 0.001;
 	this.panSpeed = 0.001;
-	this.zoomSpeed = 0.001;
+	this.zoomSpeed = 0.1;
 	this.rotationSpeed = 0.005;
 	this.rotationSpeed = 0.005;
 
 
 	// internals
 	// internals
@@ -189,7 +189,7 @@ THREE.EditorControls = function ( object, domElement ) {
 
 
 		// if ( scope.enabled === false ) return;
 		// if ( scope.enabled === false ) return;
 
 
-		scope.zoom( new THREE.Vector3( 0, 0, event.deltaY ) );
+		scope.zoom( new THREE.Vector3( 0, 0, event.deltaY > 0 ? 1 : - 1 ) );
 
 
 	}
 	}
 
 

粤ICP备19079148号