fix(pdfjs): not reacting to deleting highlights or moving (closes #9069)

This commit is contained in:
Elian Doran
2026-04-25 21:24:48 +03:00
parent a2424cd0df
commit 4e1b71dac2
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -81,6 +81,10 @@ export function setupAnnotationLiveUpdates() {
// Fires when editor properties change (e.g. color, thickness).
app.eventBus.on("annotationeditorparamschanged", debouncedRefresh);
// Catches deletions, undo/redo, and comment deletion which
// don't trigger onSetModified or annotationeditorparamschanged.
app.eventBus.on("editingstateschanged", debouncedRefresh);
}
async function extractAndSendAnnotations() {
+5
View File
@@ -126,6 +126,11 @@ function manageSave() {
app.eventBus.on("switchannotationeditorparams", () => {
onChange();
});
// Catches deletions of existing annotations, undo/redo, and comment deletion
// which don't trigger onSetModified or switchannotationeditorparams.
app.eventBus.on("editingstateschanged", () => {
onChange();
});
}
function manageDownload() {