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:
commit
0dd70c4e66
3 changed files with 80 additions and 1 deletions
|
@ -129,7 +129,6 @@ class AnnotationEditorLayer {
|
|||
} else {
|
||||
this.enableClick();
|
||||
}
|
||||
this.#uiManager.unselectAll();
|
||||
|
||||
if (mode !== AnnotationEditorType.NONE) {
|
||||
this.div.classList.toggle(
|
||||
|
|
|
@ -1104,6 +1104,7 @@ class AnnotationEditorUIManager {
|
|||
}
|
||||
this.setEditingState(true);
|
||||
this.#enableAll();
|
||||
this.unselectAll();
|
||||
for (const layer of this.#allLayers.values()) {
|
||||
layer.updateMode(mode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue