From e8b5871e8edf1208fe05eaa62d19083d24974ad0 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 27 Dec 2022 12:37:21 +0000 Subject: [PATCH] fixed bug with dragging new connections --- static/diagram.js | 2 +- static/diagram.ts | 3 +-- todo.md | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/static/diagram.js b/static/diagram.js index a9ed844..35d0be7 100644 --- a/static/diagram.js +++ b/static/diagram.js @@ -586,8 +586,8 @@ var Diagrams = /** @class */ (function () { if (this.newConnection != null) { if (this.newConnection.input != null) { this.addConnection(this.newConnection.output, this.newConnection.input); - this.mouseState.draggingConnection = false; } + this.mouseState.draggingConnection = false; } this.newConnection = null; }; diff --git a/static/diagram.ts b/static/diagram.ts index f9ed920..007af7a 100644 --- a/static/diagram.ts +++ b/static/diagram.ts @@ -255,7 +255,6 @@ class NewConnection extends CanvasObject { this.controlPoints.inputX = ms.offset.x + this.input.input.x; this.controlPoints.inputY = ms.offset.y + this.input.input.y; this.controlPoints.dX = Math.abs(this.controlPoints.outputX - this.controlPoints.inputX); - } this.controlPoints.cp1x = (this.controlPoints.outputX + this.controlPoints.dX); @@ -628,8 +627,8 @@ class Diagrams { if (this.newConnection != null){ if (this.newConnection.input != null){ this.addConnection(this.newConnection.output, this.newConnection.input); - this.mouseState.draggingConnection = false; } + this.mouseState.draggingConnection = false; } this.newConnection = null; } diff --git a/todo.md b/todo.md index 13724f7..d364858 100644 --- a/todo.md +++ b/todo.md @@ -13,5 +13,4 @@ - ebay - walmart - etsy - - aliexpress.com -- start connection, don't connect, cant start new connection bug? \ No newline at end of file + - aliexpress.com \ No newline at end of file