mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-09 19:41:14 +00:00
Fix for selection component
This commit is contained in:
parent
00b4e1ef7f
commit
2e6192914a
@ -100,7 +100,9 @@ export class SelectionTool {
|
||||
}
|
||||
|
||||
private moveSelection(start, move) {
|
||||
this.path.attr('d', this.rect(start[0], start[1], move[0] - start[0], move[1] - start[1]));
|
||||
let x = start[0]/this.context.transformation.k;
|
||||
let y = start[1]/this.context.transformation.k;
|
||||
this.path.attr('d', this.rect(x, y, move[0]/this.context.transformation.k - x, move[1]/this.context.transformation.k - y));
|
||||
this.selectedEvent(start, move);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user