diff --git a/src/display/editor/highlight.js b/src/display/editor/highlight.js index b421c19e0..c16632097 100644 --- a/src/display/editor/highlight.js +++ b/src/display/editor/highlight.js @@ -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 */