fix: scrollTop safari content issue

This commit is contained in:
Timothy Z. 2024-09-24 13:00:33 +03:00
parent b1683262fb
commit 3d4bb2ade5

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