undo thing

This commit is contained in:
Orion Reed 2024-12-14 13:59:27 -05:00
parent 7fb89dd80a
commit f93afb7314
1 changed files with 3 additions and 1 deletions

View File

@ -472,7 +472,9 @@ export class FolkShape extends HTMLElement {
}
#dispatchTransformEvent() {
const event = new TransformEvent(this.#rect, this.#previousRect);
this.#readonlyRect = new DOMRectTransformReadonly(this.#rect);
const event = new TransformEvent(this.#readonlyRect, this.#previousRect);
this.dispatchEvent(event);
if (event.xPrevented) {