From 93c666b03d9aae799290fca28a75d73c1e185511 Mon Sep 17 00:00:00 2001
From: Yidadaa <yidadaa@qq.com>
Date: Fri, 23 Jun 2023 20:53:08 +0800
Subject: [PATCH] feat: close #2025 just use a smaller to-bottom threshold

---
 app/components/chat.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index 50358f7f..0f1bad64 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -480,7 +480,7 @@ export function Chat() {
   const navigate = useNavigate();
 
   const onChatBodyScroll = (e: HTMLElement) => {
-    const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 100;
+    const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 10;
     setHitBottom(isTouchBottom);
   };