diff --git a/web/static/main.js b/web/static/main.js index 1116ce7..18e2c9f 100644 --- a/web/static/main.js +++ b/web/static/main.js @@ -471,6 +471,17 @@ function renderCanvas() { }); // Port-click drives both cable-draw (slice 7) and port-select (this fix). c.addEventListener("pointerdown", (e) => onPortPointerDown(e, prt)); + // Double-click a port → enter cable-draw mode from that port, + // bypassing the cable-tool arming step. The next port-click + // commits the cable (existing cable-draw-in-progress branch in + // onPortPointerDown). + c.addEventListener("dblclick", (e) => { + e.stopPropagation(); + e.preventDefault(); + state.cableDrawFromPortID = prt.id; + state.selection = null; + render(); + }); g.append(c); }