Skip to content

Commit 19aea6a

Browse files
Fix scroll to top
1 parent 3015cc8 commit 19aea6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/services/scroll-to-top.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ScrollToTopService {
1111
const currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
1212
if (currentScroll > 0) {
1313
window.requestAnimationFrame(smoothscroll);
14-
window.scrollTo(0, currentScroll - currentScroll / 5);
14+
window.scrollTo(0, 0);
1515
}
1616
})();
1717
}

0 commit comments

Comments
 (0)