Merge branch 'RED-10517' into 'master'

RED-10517: disabled scrolling for select all annotations.

See merge request redactmanager/red-ui!729
This commit is contained in:
Valentin-Gabriel Mihai 2024-11-27 16:14:42 +01:00
commit cd2b12c35a
2 changed files with 6 additions and 2 deletions

View File

@ -310,7 +310,11 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnInit, On
@Debounce()
scrollToSelectedAnnotation(): void {
const annotationsElement = untracked(this._annotationsElement);
if (this.listingService.selected.length === 0 || !annotationsElement) {
if (
this.listingService.selected.length === 0 ||
!annotationsElement ||
this.activeAnnotations().length === this.listingService.selected.length
) {
return;
}
const elements: HTMLElement[] = annotationsElement.nativeElement.querySelectorAll(

@ -1 +1 @@
Subproject commit 72e760fff8bc1adb72969b1e6e6971cdb88d55fe
Subproject commit cbdfcf4d8fb3a63417b61604496d8fa81bdea671