diff --git a/UI/UIElement.ts b/UI/UIElement.ts index f32b6e5..89325a1 100644 --- a/UI/UIElement.ts +++ b/UI/UIElement.ts @@ -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";