Skip to content

Commit

Permalink
chore: Update setTimeout to 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitaniket committed Mar 5, 2024
1 parent ce2b3b1 commit f6b00cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Quotes/QuotesNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ export default function QuotesNavigator({
const handleScroll = () => {
setIsScrolling(true);
clearTimeout(timeoutId);

// Set a timeout of 3 seconds to reset isScrolling after 3 seconds of no scrolling
timeoutId = setTimeout(() => {
setIsScrolling(false);
}, 1500);
}, 3000);
};

window.addEventListener("scroll", handleScroll);
Expand Down

0 comments on commit f6b00cb

Please sign in to comment.