commit 1f3eb3b72a432a6ce082c51e4715f68202308486
parent d67c69b18df32fcfdd7c9ce0ead6d292ac9a3d0b
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Thu, 17 Oct 2024 15:27:39 -0700
Make door swing usable without precice input methods
Especially now that the pointmaps are thinner it was hard even with
a mouse, now it acts like adding a point where the handler just
uses the selected object instead of determining which to use with
the inside() method or the like.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -1080,7 +1080,7 @@ function precisePointMapHandler(event, editor, state) {
return
}
- let map = editor.thingAt(cursor, "#pointmaps")
+ let map = editor.selectedOne("pointmaps")
if (map == null) {
return
}