Skip to content

Commit

Permalink
[Editor] Compute the position of the last point before applying rotat…
Browse files Browse the repository at this point in the history
…ion (bug 1879113)
  • Loading branch information
calixteman authored and pull[bot] committed Feb 17, 2024
1 parent 2a21e92 commit 1881219
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/display/editor/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1881219

Please sign in to comment.