Skip to content

Commit

Permalink
Rename constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Dec 20, 2024
1 parent 9b86b81 commit 585e3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/src/app/angular/scrolling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function isVisible(elementId: string, scrollViewport: CdkVirtualScrollViewport):
if (!element) return false;

const elementRect: ClientRect = element.getBoundingClientRect();
const sidebarRect: ClientRect = scrollViewport.getElementRef().nativeElement.getBoundingClientRect();
const viewportRect: ClientRect = scrollViewport.getElementRef().nativeElement.getBoundingClientRect();

return elementRect.top > sidebarRect.top && elementRect.bottom <= sidebarRect.bottom;
return elementRect.top > viewportRect.top && elementRect.bottom <= viewportRect.bottom;
}


Expand Down

0 comments on commit 585e3b0

Please sign in to comment.