preventing 'hover' of output when connecting

This commit is contained in:
BroodjeAap 2022-09-11 13:15:52 +00:00
parent 414d7a2877
commit 9c0913bdb4
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ var Diagrams = /** @class */ (function () {
this.nodeHover = node; this.nodeHover = node;
break; break;
} }
else if (node.pointInOutputCircle(this.worldX, this.worldY)) { else if (this.makingConnectionNode == null && node.pointInOutputCircle(this.worldX, this.worldY)) {
node.outputHover = true; node.outputHover = true;
this.nodeHover = node; this.nodeHover = node;
break; break;

View file

@ -167,7 +167,7 @@ class Diagrams {
node.inputHover = true; node.inputHover = true;
this.nodeHover = node; this.nodeHover = node;
break; break;
} else if (node.pointInOutputCircle(this.worldX, this.worldY)){ } else if (this.makingConnectionNode == null && node.pointInOutputCircle(this.worldX, this.worldY)){
node.outputHover = true; node.outputHover = true;
this.nodeHover = node; this.nodeHover = node;
break; break;