RED-10517: disabled scrolling for select all annotations.

This commit is contained in:
Nicoleta Panaghiu 2024-11-27 16:57:32 +02:00
parent 6c62c6060e
commit d9e28e147a
2 changed files with 6 additions and 2 deletions

View File

@ -309,7 +309,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 cc57415de03365cd21f42efe54e8e5eb72cb699c
Subproject commit b35084d54826ebb6da55121a893830f6dd71dd64