Skip to content

Commit a30a329

Browse files
Merge pull request #211 from OS2iot/bugfix/#206-Gateway-metadata-error
Fix scroll to top
2 parents 7ef663a + 19aea6a commit a30a329

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)