Skip to content

Commit

Permalink
Hide navbar when scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Jul 29, 2024
1 parent 0151dac commit b1a52c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function AppBarBody() {
const sm = useSm();
const paper = usePaper();
const [top, setTop] = useState(true);
const scrolling = useScrollTrigger();
const scrolling = useScrollTrigger({ target: document.body });
useEffect(() => {
let cancelled = false;
const f = () => {
Expand Down

0 comments on commit b1a52c4

Please sign in to comment.