mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
fix: scrollTop safari content issue
This commit is contained in:
parent
b1683262fb
commit
3d4bb2ade5
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ const NavTabButton = ({ className, logo, icon, label, href, selected, onClick })
|
||||||
|
|
||||||
scrollableElements.forEach((element) => {
|
scrollableElements.forEach((element) => {
|
||||||
if (element.scrollTop > 0) {
|
if (element.scrollTop > 0) {
|
||||||
element.scrollTop = 0;
|
element.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue