mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Compute the position of the last point before applying rotation (bug 1879113)
This commit is contained in:
parent
939134ee55
commit
8d61fc1fde
1 changed files with 2 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue