【优化】AI Chat 对话自动滚动
This commit is contained in:
parent
482ce62370
commit
e0b38f5804
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user