adding double click features
Deploy / deploy (push) Successful in 43s

This commit is contained in:
2026-05-12 10:33:44 +02:00
parent fe5f288fc0
commit d104955af9
+2 -2
View File
@@ -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) {