Merge pull request #75 from xerrors/fix-scrooling-bug

优化生成过程中的滚动体验
This commit is contained in:
Wenjie Zhang 2025-03-14 10:13:55 +08:00 committed by GitHub
commit e7a52f66df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;