From f2c9bd2e8d1f15665288c7f2672fe730f6ed61db Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 14 Mar 2025 10:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E7=9A=84=E6=BB=9A=E5=8A=A8=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChatComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index 59744ed0..b6a775e9 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -301,7 +301,7 @@ const renameTitle = () => { const handleUserScroll = () => { // 计算我们是否接近底部(100像素以内) - const isNearBottom = chatContainer.value.scrollHeight - chatContainer.value.scrollTop - chatContainer.value.clientHeight < 100; + const isNearBottom = chatContainer.value.scrollHeight - chatContainer.value.scrollTop - chatContainer.value.clientHeight < 20; // 如果用户不在底部,则仅将其标记为用户滚动 userIsScrolling.value = !isNearBottom;