commit a5ef7ba0d4675ab1bc89b473d4418e31711dd79c
parent 81a69ff5cb0eaa4e2bd5832886d9d536be2bdf84
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Thu, 14 Nov 2024 07:02:35 -0800
Fix touchstart being prevented in header buttons
It was added to stop some touch devices from performing undesirable
behaviors like selecting text or zooming in the header when the
user is clicking on things, but it had the side-effect of preventing
buttons from being pressed.
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -266,8 +266,6 @@ function run(editor) {
editor.fitToView()
})
- document.querySelector("header")
- .addEventListener("touchstart", function(e) { e.preventDefault() })
editor.draw.on("touchstart", function(e){ e.preventDefault() });
editor.draw.on("touchmove", function(e){ e.preventDefault() });
editor.draw.on("pinchZoomStart", function() { State.panZoom |= zoomBit })