[Editor] Compute the position of the last point before applying rotation (bug 1879113)

This commit is contained in:
Calixte Denizet 2024-02-08 20:07:12 +01:00
parent 939134ee55
commit 8d61fc1fde

View File

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