RED-10517: disabled scrolling for select all annotations.

This commit is contained in:
Nicoleta Panaghiu 2024-11-27 16:54:04 +02:00
parent 9ef4ba4af5
commit b7e1e5764e
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