【优化】AI Chat 对话自动滚动
This commit is contained in:
parent
482ce62370
commit
e0b38f5804
@ -179,8 +179,7 @@ function handleScroll() {
|
|||||||
const scrollTop = scrollContainer.scrollTop
|
const scrollTop = scrollContainer.scrollTop
|
||||||
const scrollHeight = scrollContainer.scrollHeight
|
const scrollHeight = scrollContainer.scrollHeight
|
||||||
const offsetHeight = scrollContainer.offsetHeight
|
const offsetHeight = scrollContainer.offsetHeight
|
||||||
|
if ((scrollTop + offsetHeight) < (scrollHeight - 50)) {
|
||||||
if (scrollTop + offsetHeight < scrollHeight) {
|
|
||||||
// 用户开始滚动并在最底部之上,取消保持在最底部的效果
|
// 用户开始滚动并在最底部之上,取消保持在最底部的效果
|
||||||
isScrolling.value = true
|
isScrolling.value = true
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user