fixed bug with dragging new connections
This commit is contained in:
parent
f6b6896da6
commit
e8b5871e8e
3 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
3
todo.md
3
todo.md
|
@ -13,5 +13,4 @@
|
|||
- ebay
|
||||
- walmart
|
||||
- etsy
|
||||
- aliexpress.com
|
||||
- start connection, don't connect, cant start new connection bug?
|
||||
- aliexpress.com
|
Loading…
Add table
Reference in a new issue