Katheryne/Frontend/wwwroot/js/helper.js

7 lines
207 B
JavaScript

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