diff --git a/src/components/topbar/topbar.module.css b/src/components/topbar/topbar.module.css index 0aeba7bd..6561004e 100644 --- a/src/components/topbar/topbar.module.css +++ b/src/components/topbar/topbar.module.css @@ -51,7 +51,7 @@ position: fixed; width: 100%; z-index: 3; - transition: top 0.3s ease-in-out; + transition: top 0.2s ease-in-out; align-items: center; justify-content: space-around; } diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index fafa1da2..f2fa6a39 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -159,7 +159,7 @@ const TopBarMobile = ({ subplebbitAddress }: { subplebbitAddress: string }) => { setVisible(prevScrollPos > currentScrollPos || currentScrollPos < 10); prevScrollPosRef.current = currentScrollPos; - }, 25); + }, 50); window.addEventListener('scroll', debouncedHandleScroll);