You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this pr sets a flag to help indicate whether the page is being scrolled
so that the toggles don’t expand while scrolling. this pr also modifies
the `handleMouseEnter` function to check this flag and prevents the
toggle from expanding if the page is being scrolled.
- adds a new state variable to track if the page is scrolling.
- add event listeners for scroll events to set this variable.
- modifies the handleMouseEnter function to check the scrolling state.
So:
- `isScrolling` tracks if user is scrolling
- `handleScroll` function to call on scrolling events and disables
toggle if `isScrolling` is true
- `handleMouseEnter` checks for `isScrolling`
0 commit comments