diff --git a/frontend/assets/js/app.js b/frontend/assets/js/app.js index 51ccb01..b53827a 100644 --- a/frontend/assets/js/app.js +++ b/frontend/assets/js/app.js @@ -1417,9 +1417,9 @@ function onDblClick(e) { const mx = e.clientX - rect.left - panX; const my = e.clientY - rect.top - panY; const node = getCanvasNodeAt(mx, my); - if (node) { selectNode(node.id); return; } + if (node) { editSelectedNode(node.id); return; } const shape = getShapeAt(mx, my); - if (shape) { selectedNodeId = null; selectedShapeId = shape.id; renderShapeList(); renderNetwork(); } + if (shape) { editSelectedShape(shape.id); } } function esc(s) {