commit b9a04c41a1b44fe5caef9751ce4289714224ff4c
parent fe10e77af09aadc6cba7f6833ab5d63bc1cd359b
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Thu, 3 Oct 2024 10:31:12 -0700
Disable touchmove event on editor
This is needed to make using touch devices usable (although currently
we're using click events anyway, so it's still unusable on them).
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -154,6 +154,8 @@ function init() {
editor.draw.viewbox(bbox)
editor.updateGrid()
})
+
+ editor.draw.on("touchmove", function(e){ e.preventDefault() });
}
function selectHandler(event, editor, state) {