fix(pdfjs): not reacting to deleting highlights or moving (closes #9069)
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user