Fix for selection component

This commit is contained in:
Piotr Pekala 2019-06-14 00:51:04 -07:00
parent 00b4e1ef7f
commit 2e6192914a

View File

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