www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit d058f3e5702afaf44051a68bff8009168ee08b00
parent a5e463b8edd216c6149ec4b507819a3aa3d1bfb2
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 22 Oct 2024 11:20:58 -0700

Fix touch input devices box select in edit mode

For touch input devices, the box selection handler was being run
at all times preventing anything from being done effectively.

Diffstat:
Mfiles/floorplans/floorplan/main.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -598,8 +598,10 @@ function selectionBoxHandler(ev, editor, state) { } let p = primaryPointer(ev) return state.shiftStart ? p : !p - } else { + } else if (editor.mode === "Select") { return primaryPointer(ev) + } else { + return false } }