Merge pull request #17643 from calixteman/bug1879113

[Editor] Compute the position of the last point before applying rotation (bug 1879113)
This commit is contained in:
calixteman 2024-02-08 21:30:22 +01:00 committed by GitHub
commit 964bfe522b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,11 +169,9 @@ class HighlightEditor extends AnnotationEditor {
break;
}
}
const { lastPoint } = this.#focusOutlines.box;
this.#lastPoint = [
(lastPoint[0] - this.x) / this.width,
(lastPoint[1] - this.y) / this.height,
];
this.#lastPoint = [(lastPoint[0] - x) / width, (lastPoint[1] - y) / height];
}
/** @inheritdoc */