[editor] Disable editing while PresentationMode is active

This commit is contained in:
Jonas Jenwald 2022-07-01 16:09:10 +02:00
parent 13c01b6d4a
commit 37b61f2228
2 changed files with 16 additions and 1 deletions

View file

@ -2156,7 +2156,9 @@ class BaseViewer {
* @type {number}
*/
get annotationEditorMode() {
return this.#annotationEditorMode;
return this.#annotationEditorUIManager
? this.#annotationEditorMode
: AnnotationEditorType.DISABLE;
}
/**