mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 09:00:30 +00:00
refactor: use scrollTop instead of scrollTo
This commit is contained in:
parent
48e44a0332
commit
011ecd21ca
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ const NavTabButton = ({ className, logo, icon, label, href, selected, onClick })
|
|||
const scrollableElements = document.querySelectorAll('div');
|
||||
|
||||
scrollableElements.forEach((element) => {
|
||||
if (element.scrollHeight > element.clientHeight) {
|
||||
element.scrollTo(0, 0);
|
||||
if (element.scrollTop > 0) {
|
||||
element.scrollTop = 0;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue