diff --git a/static/diagram.js b/static/diagram.js index 5c0ddcc..8a0e8d7 100644 --- a/static/diagram.js +++ b/static/diagram.js @@ -133,7 +133,7 @@ var Diagrams = /** @class */ (function () { this.nodeHover = node; break; } - else if (node.pointInOutputCircle(this.worldX, this.worldY)) { + else if (this.makingConnectionNode == null && node.pointInOutputCircle(this.worldX, this.worldY)) { node.outputHover = true; this.nodeHover = node; break; diff --git a/static/diagram.ts b/static/diagram.ts index c5cf761..785dca8 100644 --- a/static/diagram.ts +++ b/static/diagram.ts @@ -167,7 +167,7 @@ class Diagrams { node.inputHover = true; this.nodeHover = node; break; - } else if (node.pointInOutputCircle(this.worldX, this.worldY)){ + } else if (this.makingConnectionNode == null && node.pointInOutputCircle(this.worldX, this.worldY)){ node.outputHover = true; this.nodeHover = node; break;