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

Don't hide the editor layer when rotating (follow-up of #17802)

Before the patch in #17802, the layer was made visible when calling updateMode
after the rotation angle was set.
This commit is contained in:
Calixte Denizet 2024-03-19 15:17:44 +01:00
parent e892f3b18f
commit a3873e4c68
3 changed files with 41 additions and 1 deletions

View file

@ -129,6 +129,12 @@ class AnnotationEditorLayer {
return this.#editors.size === 0;
}
get isInvisible() {
return (
this.isEmpty && this.#uiManager.getMode() === AnnotationEditorType.NONE
);
}
/**
* Update the toolbar if it's required to reflect the tool currently used.
* @param {number} mode