add: 列表自动滚动到底部

This commit is contained in:
2023-10-16 14:34:17 +08:00
parent 4c6d35421a
commit a7e784ba65
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
function scrollToSection() {
let element = document.getElementById("chat-scroll-zone")
element.scrollTo({
top: element.scrollHeight - element.offsetHeight,
behavior: "smooth"
})
}