mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +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) => {
|
||||
if (element.scrollTop > 0) {
|
||||
element.scrollTop = 0;
|
||||
element.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue