【优化】AI Chat 对话自动滚动

This commit is contained in:
cherishsince 2024-05-16 18:34:19 +08:00
parent 482ce62370
commit e0b38f5804

View File

@ -179,8 +179,7 @@ function handleScroll() {
const scrollTop = scrollContainer.scrollTop
const scrollHeight = scrollContainer.scrollHeight
const offsetHeight = scrollContainer.offsetHeight
if (scrollTop + offsetHeight < scrollHeight) {
if ((scrollTop + offsetHeight) < (scrollHeight - 50)) {
//
isScrolling.value = true
} else {