diff options
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | scripts/gui-common/widgets.js | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -32,7 +32,7 @@ <a class="nav-el" href="?page=automation">Home Automation</a> </nav> - <content> + <content style="height:300vh; flex-direction: column; justify-content: space-evenly;"> </content> <script src="scripts/gui-common/color.js"></script> 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(); } } |