fix(topbar): mobile animation on scroll was too slow

This commit is contained in:
Tom (plebeius.eth)
2024-10-14 11:51:49 +02:00
parent 3061a925c2
commit 8e245a4759
3 changed files with 3 additions and 2 deletions
+2
View File
@@ -1,6 +1,8 @@
# plebbit temp files
.plebbit
bin
.env
.deploy-env
# Logs
logs
+1 -1
View File
@@ -159,7 +159,7 @@ const TopBarMobile = ({ subplebbitAddress }: { subplebbitAddress: string }) => {
setVisible(prevScrollPos > currentScrollPos || currentScrollPos < 10);
prevScrollPosRef.current = currentScrollPos;
}, 50);
}, 25);
window.addEventListener('scroll', debouncedHandleScroll);
-1
View File
@@ -1,6 +1,5 @@
declare global {
interface Window {
STICKY_MENU_SCROLL_LISTENER: boolean;
isElectron: boolean;
}
}