diff --git a/src/components/AppBar.tsx b/src/components/AppBar.tsx index 6c391b3..5174700 100644 --- a/src/components/AppBar.tsx +++ b/src/components/AppBar.tsx @@ -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 = () => {