From 1a354c9cbf302087b3cbfa8ce60b1fc00eb35abe Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Sun, 22 Oct 2023 19:10:59 -0700 Subject: [PATCH] Reduce debounce value --- packages/desktop-client/src/components/ScrollProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/ScrollProvider.tsx b/packages/desktop-client/src/components/ScrollProvider.tsx index 06e59fb60e1..45c39e0ac8e 100644 --- a/packages/desktop-client/src/components/ScrollProvider.tsx +++ b/packages/desktop-client/src/components/ScrollProvider.tsx @@ -29,7 +29,7 @@ export default function ScrollProvider({ children }: ScrollProviderProps) { setIsBottomReached( e.target?.scrollHeight - e.target?.scrollTop <= e.target?.clientHeight, ); - }, 20); + }, 10); window.addEventListener('scroll', listenToScroll, { capture: true,