Skip to content

Commit

Permalink
bug: fix show on scroll up Nabbar
Browse files Browse the repository at this point in the history
  • Loading branch information
wtLau committed Oct 22, 2022
1 parent 7cad1cb commit e3dc36c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/common/Navbar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ interface Props {
}

function HideOnScroll({ children }: Props) {
const trigger = useScrollTrigger({
disableHysteresis: true,
threshold: 100,
})
const trigger = useScrollTrigger()

return (
<Slide appear={false} direction='down' in={!trigger}>
Expand Down

0 comments on commit e3dc36c

Please sign in to comment.