Compare commits
1 Commits
main
...
mai/picass
| Author | SHA1 | Date | |
|---|---|---|---|
| 48647088f9 |
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user