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

refac

parent ae35c689
...@@ -361,13 +361,14 @@ ...@@ -361,13 +361,14 @@
history: history history: history
}); });
if (autoScroll) {
const element = document.getElementById('messages-container'); const element = document.getElementById('messages-container');
autoScroll = autoScroll =
element.scrollHeight - element.scrollTop <= element.clientHeight + 50; element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
setTimeout(() => { setTimeout(() => {
scrollToBottom(); scrollToBottom();
}, 100); }, 100);
}
}} }}
/> />
{/key} {/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