3742fa9f0c
Issues: - The `change` event was not dispatched in MaskEditor.svelte when an undo/redo was performed. Therefore, if the user then closed the editor or switched to another note without performing an operation that would cause the `change` event to be dispatched, the undone or redone changes were not saved to DB. - When `IOMode.kind === "edit"` (i.e., Edit Current or Browse), the beginning of the undo history was a blank canvas, not a canvas with existing masks. Therefore, if you continued to undo to the beginning of the history, the masks that existed when you opened the editor would be lost, and they would not be restored even when you performed a redo. - In the 'Add' dialog, the undo history was not reset when starting to create a new IO note after adding an IO note. Also add a small UI improvement: The undo/redo buttons are now disabled when there is no action to undo/redo. |
||
---|---|---|
.. | ||
add-from-cloze.ts | ||
index.ts | ||
lib.ts | ||
more-tools.ts | ||
tool-aligns.ts | ||
tool-buttons.ts | ||
tool-ellipse.ts | ||
tool-polygon.ts | ||
tool-rect.ts | ||
tool-undo-redo.ts |