Skip to content

Commit

Permalink
hide position
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jun 30, 2024
1 parent 74b81fd commit f10f494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Navbar = ({
if (window.location.pathname.includes("/post/")) {
const currentScrollPos = window?.pageYOffset;

if (p > 10 && !hideOffTop) {
if (currentScrollPos > 750 && !hideOffTop) {
setHideOffTop(true);
} else {
setHideOffTop(false);
Expand Down

0 comments on commit f10f494

Please sign in to comment.