prettier updates

This commit is contained in:
Jesse Winton
2024-07-23 16:08:38 -04:00
parent 79f84f74a0
commit 7cd6ca33d0
278 changed files with 6228 additions and 5966 deletions

View File

@@ -1,8 +1,8 @@
let lastScrollPos = 0;
export function getScrollDir() {
const scrollPos = window.scrollY;
const scrollDir = scrollPos > lastScrollPos ? 'down' : 'up';
lastScrollPos = scrollPos;
return scrollDir;
const scrollPos = window.scrollY;
const scrollDir = scrollPos > lastScrollPos ? 'down' : 'up';
lastScrollPos = scrollPos;
return scrollDir;
}