From 9c0913bdb46cec3a7407246e6f3a384da449853d Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 11 Sep 2022 13:15:52 +0000 Subject: [PATCH] preventing 'hover' of output when connecting --- static/diagram.js | 2 +- static/diagram.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;