diff --git a/examples/js/controls/EditorControls.js b/examples/js/controls/EditorControls.js index 64b99496ef9d78..8bbafe4f3f0c95 100644 --- a/examples/js/controls/EditorControls.js +++ b/examples/js/controls/EditorControls.js @@ -14,7 +14,7 @@ THREE.EditorControls = function ( object, domElement ) { this.enabled = true; this.center = new THREE.Vector3(); this.panSpeed = 0.001; - this.zoomSpeed = 0.001; + this.zoomSpeed = 0.1; this.rotationSpeed = 0.005; // internals @@ -187,9 +187,8 @@ THREE.EditorControls = function ( object, domElement ) { event.preventDefault(); - // if ( scope.enabled === false ) return; - - scope.zoom( new THREE.Vector3( 0, 0, event.deltaY ) ); + // Normalize deltaY due to https://bugzilla.mozilla.org/show_bug.cgi?id=1392460 + scope.zoom( new THREE.Vector3( 0, 0, event.deltaY > 0 ? 1 : - 1 ) ); }