优化生成过程中的滚动体验

This commit is contained in:
Wenjie Zhang 2025-03-14 10:07:53 +08:00
parent 927a7abf99
commit f2c9bd2e8d

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;