Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consider scrolling for hover function (#4731)
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`
- Loading branch information