Commit 1fb5ef99 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent ae35c689
......@@ -361,13 +361,14 @@
history: history
});
if (autoScroll) {
const element = document.getElementById('messages-container');
autoScroll =
element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
setTimeout(() => {
scrollToBottom();
}, 100);
}
}}
/>
{/key}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment