diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/scrolling.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/scrolling.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/scrolling.ts b/server/sonar-web/src/main/js/helpers/scrolling.ts index a36c6ef0789..701665223b4 100644 --- a/server/sonar-web/src/main/js/helpers/scrolling.ts +++ b/server/sonar-web/src/main/js/helpers/scrolling.ts @@ -28,7 +28,7 @@ function isWindow(element: HTMLElement | Window): element is Window { } function getScrollPosition(element: HTMLElement | Window): number { - return isWindow(element) ? window.scrollY : element.scrollTop; + return isWindow(element) ? window.pageYOffset : element.scrollTop; } function scrollElement(element: HTMLElement | Window, position: number): void { |