This commit is contained in:
songyi.huang 2021-10-28 16:51:02 +08:00 committed by GitHub
commit 7f50acb22f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -85,12 +85,12 @@
this.container.addEventListener('wheel', this.onMousewheel_.bind(this));
}
window.addEventListener('mouseup', this.onMouseup_.bind(this));
window.addEventListener('mousemove', this.onMousemove_.bind(this));
window.addEventListener('keyup', this.onKeyup_.bind(this));
window.addEventListener('touchstart', this.onTouchstart_.bind(this));
window.addEventListener('touchmove' , this.onTouchmove_.bind(this));
window.addEventListener('touchend', this.onTouchend_.bind(this));
this.container.addEventListener('mouseup', this.onMouseup_.bind(this));
this.container.addEventListener('mousemove', this.onMousemove_.bind(this));
this.container.addEventListener('keyup', this.onKeyup_.bind(this));
this.container.addEventListener('touchstart', this.onTouchstart_.bind(this));
this.container.addEventListener('touchmove' , this.onTouchmove_.bind(this));
this.container.addEventListener('touchend', this.onTouchend_.bind(this));
// Deactivate right click:
document.body.addEventListener('contextmenu', this.onCanvasContextMenu_.bind(this));