From 63a48b9e880f2fea7c418a51275c877a090ca74b Mon Sep 17 00:00:00 2001 From: janis steiner Date: Thu, 7 May 2026 19:08:44 +0200 Subject: [PATCH] improve map --- frontend/assets/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/assets/js/app.js b/frontend/assets/js/app.js index b08b082..914da9b 100644 --- a/frontend/assets/js/app.js +++ b/frontend/assets/js/app.js @@ -654,6 +654,13 @@ function onMouseDown(e) { dragType = 'shape'; dragTarget = shape; dragOffX = mx - shape.x; dragOffY = my - shape.y; renderNodeList(); renderShapeList(); + // Re-check resize handles now that shape is selected + const resizeNow = getShapeResizeHandleAt(mx, my); + if (resizeNow) { + dragType = 'resize'; dragTarget = resizeNow.shape; + dragOffX = mx; dragOffY = my; + dragOrig = { x: resizeNow.shape.x, y: resizeNow.shape.y, w: resizeNow.shape.w, h: resizeNow.shape.h, cx: resizeNow.cx, cy: resizeNow.cy }; + } return; }