improve map
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-07 19:08:44 +02:00
parent 4beb2e1715
commit 63a48b9e88
+7
View File
@@ -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;
}