ts-ignore e.consumed

This commit is contained in:
Pieter Fiers 2020-07-24 15:22:28 +02:00
parent 7bbc140f05
commit 08ca7a1ec7

View file

@ -54,10 +54,12 @@ export abstract class UIElement {
if (this._onClick !== undefined) {
const self = this;
element.onclick = (e) => {
// @ts-ignore
if(e.consumed){
return;
}
self._onClick();
// @ts-ignore
e.consumed = true;
}
element.style.pointerEvents = "all";