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

Merge pull request #16824 from calixteman/editor_dont_unselect_on_render

[Editor] Avoid to unselect when a new page is rendered
This commit is contained in:
calixteman 2023-08-10 18:37:42 +02:00 committed by GitHub
commit 0dd70c4e66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}