[CHANGE] event console own component
This commit is contained in:
@@ -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' });
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user