From f6b00cb11f76064103652ad54d2ec875400afc64 Mon Sep 17 00:00:00 2001 From: ankitaniket Date: Tue, 5 Mar 2024 21:56:45 +0530 Subject: [PATCH] chore: Update setTimeout to 3000 --- src/components/Quotes/QuotesNavigator.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Quotes/QuotesNavigator.tsx b/src/components/Quotes/QuotesNavigator.tsx index 2f09cab..5635fbe 100644 --- a/src/components/Quotes/QuotesNavigator.tsx +++ b/src/components/Quotes/QuotesNavigator.tsx @@ -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);