Merge pull request #689 from Stremio/fix-scrolltop-safari

fix: scrollTop safari content issue
This commit is contained in:
Tim 2024-09-24 15:19:09 +02:00 committed by GitHub
commit 138282bcfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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' });
}
});
};