未验证 提交 0d618f3f 编写于 作者: C cywarr 提交者: GitHub

Rename "e" parameter to "event" in event listeners

Having "e" instead of "event" caused error in Firefox. No errors in Chrome.
上级 771b015e
......@@ -141,7 +141,7 @@
var selectionBox = new SelectionBox( camera, scene );
var helper = new SelectionHelper( selectionBox, renderer, "selectBox" );
document.addEventListener("mousedown", function ( e ) {
document.addEventListener("mousedown", function ( event ) {
for ( var item of selectionBox.collection ) {
......@@ -155,7 +155,7 @@
0.5 );
} );
document.addEventListener( "mousemove", function ( e ) {
document.addEventListener( "mousemove", function ( event ) {
if ( helper.isDown ) {
......@@ -181,7 +181,7 @@
} );
document.addEventListener("mouseup", function (e) {
document.addEventListener("mouseup", function ( event ) {
selectionBox.endPoint.set(
(event.clientX / window.innerWidth) * 2 - 1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册