"include/vscode:/vscode.git/clone" did not exist on "1b2e50995887d7128f486eeb0544345296215d30"
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
}); });
const element = document.getElementById('messages-container'); if (autoScroll) {
autoScroll = const element = document.getElementById('messages-container');
element.scrollHeight - element.scrollTop <= element.clientHeight + 50; autoScroll =
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