www.spaceplanner.app

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

commit 3db7e43dc3a46f84b873095bb12ae534b707ba4d
parent 7fd01d39836e4c58922af263f48c0eb639589d96
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri, 23 Aug 2024 14:46:17 -0700

Fix pointMapTypeHandler selecting lines under points

If a line is under a point, I don't want it to be selectable through
that point.

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

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -241,8 +241,8 @@ function pointMapTypeHandler(event, editor, state) { cancel() } - let map = editor.thingAt(editor.draw.point(event.clientX, event.clientY), "#pointmaps") - if (!map) { + let map = editor.thingAt(editor.draw.point(event.clientX, event.clientY), "#floorplan > *") + if (!map || map.type != "line") { return }