提交 98f84c1b 编写于 作者: B Brian Peiris

Normalize scroll wheel

上级 34dc2478
......@@ -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 ) );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册