fixed bug with dragging new connections

This commit is contained in:
BroodjeAap 2022-12-27 12:37:21 +00:00
parent f6b6896da6
commit e8b5871e8e
3 changed files with 3 additions and 5 deletions

View file

@ -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;
};

View file

@ -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;
}

View file

@ -13,5 +13,4 @@
- ebay
- walmart
- etsy
- aliexpress.com
- start connection, don't connect, cant start new connection bug?
- aliexpress.com