From fdb7c090df9b86304ca6f6f202a39a0f63ed0b03 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Sat, 20 Dec 2025 17:16:29 -0500 Subject: Add debug log to tell what is going on on mobile --- scripts/gui-common/widgets.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/gui-common/widgets.js') diff --git a/scripts/gui-common/widgets.js b/scripts/gui-common/widgets.js index 86bc5b1..c99c3b1 100644 --- a/scripts/gui-common/widgets.js +++ b/scripts/gui-common/widgets.js @@ -109,7 +109,7 @@ class Widget extends EventTarget{ #emitMouseEvent(event) { if (WIDGETS_DEBUG) { - console.log(event); + addLogEntry(event); } if (this.#inactive) @@ -122,7 +122,7 @@ class Widget extends EventTarget{ #emitTouchEvent(event) { if (WIDGETS_DEBUG) { - console.log(event); + addLogEntry(event); } if (event.type == "touchstart") @@ -141,7 +141,7 @@ class Widget extends EventTarget{ /** @param {KeyboardEvent} event */ #emitKeyboardEvent(event) { if (WIDGETS_DEBUG) { - console.log(event); + addLogEntry(event); } if (this.#inactive) @@ -156,7 +156,7 @@ class Widget extends EventTarget{ /** @param {FocusEvent} event */ #emitFocusEvent(event) { if (WIDGETS_DEBUG) { - console.log(event); + addLogEntry(event); } if (this.#inactive) @@ -172,7 +172,7 @@ class Widget extends EventTarget{ #emitContextEvent(event) { if (WIDGETS_DEBUG) { - console.log(event); + addLogEntry(event); } if (this.#inactive) -- cgit v1.2.3