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; }