Browse Source

Normalize scroll wheel

Brian Peiris 7 years ago
parent
commit
5067e5df79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/controls/EditorControls.js

+ 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 ) );
 
 
 	}
 	}