1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

[Editor] Avoid to unselect when a new page is rendered

This commit is contained in:
Calixte Denizet 2023-08-10 18:02:27 +02:00
parent 4be6c90796
commit 71f5050ed2
3 changed files with 80 additions and 1 deletions

View file

@ -129,7 +129,6 @@ class AnnotationEditorLayer {
} else {
this.enableClick();
}
this.#uiManager.unselectAll();
if (mode !== AnnotationEditorType.NONE) {
this.div.classList.toggle(

View file

@ -1104,6 +1104,7 @@ class AnnotationEditorUIManager {
}
this.setEditingState(true);
this.#enableAll();
this.unselectAll();
for (const layer of this.#allLayers.values()) {
layer.updateMode(mode);
}