summaryrefslogtreecommitdiff
path: root/scripts/gui-common/widgets.js
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2025-12-20 17:16:29 -0500
committerKai Gunger <kgunger12@gmail.com>2025-12-20 17:16:29 -0500
commitfdb7c090df9b86304ca6f6f202a39a0f63ed0b03 (patch)
tree9e937245be7c61a04f0b2d00ba6041e9801947c7 /scripts/gui-common/widgets.js
parentd036ac50abc68a28270773009c1c005de788296b (diff)
Add debug log to tell what is going on on mobile
Diffstat (limited to 'scripts/gui-common/widgets.js')
-rw-r--r--scripts/gui-common/widgets.js10
1 files changed, 5 insertions, 5 deletions
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)