Skip to content

Conversation

@DylanDevelops
Copy link
Owner

This pull request includes a significant change to the Navbar component in components/navbar.tsx. The main change involves replacing the useScrollTop hook with a custom scroll event listener to manage the scrolled state.

Changes to Navbar component:

  • components/navbar.tsx: Replaced the useScrollTop hook with a custom scroll event listener using useState and useEffect to manage the scrolled state. This change ensures that the scrolled state is updated based on the window's scroll position.

Before (when loading page when already scrolled):
image

After:
image

@DylanDevelops DylanDevelops added the bug Something isn't working label Mar 29, 2025
@divinewton divinewton merged commit b52bbaf into main Mar 29, 2025
4 checks passed
@divinewton divinewton deleted the fix-navbar-lag branch March 29, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants