From 183ae03ee37ba6629201211e9a63fbcb04ebc527 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 25 Sep 2024 15:32:06 -0700 Subject: [PATCH] fix: unnecessary scroll delay --- gui/src/components/ChatScrollAnchor.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/src/components/ChatScrollAnchor.tsx b/gui/src/components/ChatScrollAnchor.tsx index 59e59ab9b..40c0f9d19 100644 --- a/gui/src/components/ChatScrollAnchor.tsx +++ b/gui/src/components/ChatScrollAnchor.tsx @@ -12,10 +12,7 @@ export function ChatScrollAnchor({ isAtBottom, scrollAreaRef, }: ChatScrollAnchorProps) { - const { ref, inView, entry } = useInView({ - trackVisibility, - delay: 100, - }); + const { ref, inView, entry } = useInView(); useEffect(() => { if (isAtBottom && trackVisibility && !inView) {