[CHANGE] event console own component

This commit is contained in:
max
2025-09-10 20:09:58 +02:00
parent 9be6f5be89
commit b1e5b0dc68
4 changed files with 12 additions and 25 deletions

View File

@@ -1,6 +1,8 @@
window.scrollToBottom = (element) => {
if (element) {
element.scroll({ top: element.scrollHeight, behavior: 'smooth' });
requestAnimationFrame(function () {
element.scroll({ top: element.scrollHeight, behavior: 'smooth' });
})
}
};