diff --git a/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts b/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts index 4fdb5b0bb..efc7871cf 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts @@ -58,7 +58,11 @@ export class PdfProxyService { readonly currentUser = getCurrentUser(); readonly pageChanged$ = this._pdf.pageChanged$.pipe( tap(() => this.#handleExcludedPageActions()), - tap(() => this._annotationManager.deselect()), + tap(() => { + if (this._multiSelectService.inactive()) { + this._annotationManager.deselect(); + } + }), shareDistinctLast(), ); readonly canPerformActions = computed(() => { @@ -386,7 +390,7 @@ export class PdfProxyService { actions.push(visibilityButton); } - actions = [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers)]; + actions = this._multiSelectService.inactive() ? [...actions, ...this._pdfAnnotationActionsService.get(annotationWrappers)] : []; this._pdf.instance.UI.annotationPopup.update(actions); }