Fix dragged edge position
This commit is contained in:
parent
cceb3a71af
commit
54e1ce4a37
|
@ -132,7 +132,7 @@ class GraphView extends GraphViewBase {
|
|||
super.componentDidUpdate(previousProps, previousState);
|
||||
}
|
||||
|
||||
getMouseCoordinates() {
|
||||
getMouseCoordinates(...args) {
|
||||
if (this.props.selected && this.props.moved) {
|
||||
return [
|
||||
this.props.selected.x,
|
||||
|
@ -140,7 +140,7 @@ class GraphView extends GraphViewBase {
|
|||
];
|
||||
}
|
||||
|
||||
return super.getMouseCoordinates();
|
||||
return super.getMouseCoordinates(...args);
|
||||
}
|
||||
|
||||
getNodeComponent(id, node) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user