mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix: fixed click events didn't take effect on safari mobile
This commit is contained in:
parent
21b8bdd0f3
commit
88a3e0e41e
@ -85,12 +85,12 @@
|
|||||||
this.container.addEventListener('wheel', this.onMousewheel_.bind(this));
|
this.container.addEventListener('wheel', this.onMousewheel_.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('mouseup', this.onMouseup_.bind(this));
|
this.container.addEventListener('mouseup', this.onMouseup_.bind(this));
|
||||||
window.addEventListener('mousemove', this.onMousemove_.bind(this));
|
this.container.addEventListener('mousemove', this.onMousemove_.bind(this));
|
||||||
window.addEventListener('keyup', this.onKeyup_.bind(this));
|
this.container.addEventListener('keyup', this.onKeyup_.bind(this));
|
||||||
window.addEventListener('touchstart', this.onTouchstart_.bind(this));
|
this.container.addEventListener('touchstart', this.onTouchstart_.bind(this));
|
||||||
window.addEventListener('touchmove' , this.onTouchmove_.bind(this));
|
this.container.addEventListener('touchmove' , this.onTouchmove_.bind(this));
|
||||||
window.addEventListener('touchend', this.onTouchend_.bind(this));
|
this.container.addEventListener('touchend', this.onTouchend_.bind(this));
|
||||||
|
|
||||||
// Deactivate right click:
|
// Deactivate right click:
|
||||||
document.body.addEventListener('contextmenu', this.onCanvasContextMenu_.bind(this));
|
document.body.addEventListener('contextmenu', this.onCanvasContextMenu_.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user