diff options
Diffstat (limited to 'scripts/gui-common')
-rw-r--r-- | scripts/gui-common/widgets.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gui-common/widgets.js b/scripts/gui-common/widgets.js index 3dda499..0591da6 100644 --- a/scripts/gui-common/widgets.js +++ b/scripts/gui-common/widgets.js @@ -85,6 +85,7 @@ class Widget extends EventTarget{ this.dispatchEvent(new CustomEvent("inactive", {detail: {widget: this, event: new TouchEvent(event.type, event)}})); else this.dispatchEvent(new TouchEvent(event.type, event)); + event.preventDefault(); } /** @param {Event} event */ @@ -388,6 +389,7 @@ class WidgetDragable extends Widget #touch(event) { console.log(event.type, event.changedTouches); + event.preventDefault(); } } |