From 4d3fdbdd80777c516d11cfedb03f2e2776476d2a Mon Sep 17 00:00:00 2001 From: reece00 <37351410+reece00@users.noreply.github.com> Date: Tue, 22 Aug 2023 12:35:51 +0800 Subject: [PATCH] The mobile terminal ishitbottom does not perform -10 --- 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 9a9488dd2..dfda4055b 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -935,7 +935,7 @@ function _Chat() { const isTouchTopEdge = e.scrollTop <= edgeThreshold; const isTouchBottomEdge = bottomHeight >= e.scrollHeight - edgeThreshold; - const isHitBottom = bottomHeight >= e.scrollHeight - 10; + const isHitBottom = bottomHeight >= e.scrollHeight - (isMobileScreen ? 0 : 10); const prevPageMsgIndex = msgRenderIndex - CHAT_PAGE_SIZE; const nextPageMsgIndex = msgRenderIndex + CHAT_PAGE_SIZE;