[CHANGE] Reworked event console
This commit is contained in:
14
Manager.App/wwwroot/js/eventConsole.js
Normal file
14
Manager.App/wwwroot/js/eventConsole.js
Normal file
@@ -0,0 +1,14 @@
|
||||
window.scrollToBottom = (element) => {
|
||||
if (element) {
|
||||
element.scroll({ top: element.scrollHeight, behavior: 'smooth' });
|
||||
}
|
||||
};
|
||||
|
||||
window.getScrollInfo = (element) => {
|
||||
if (!element) return null;
|
||||
return {
|
||||
scrollTop: element.scrollTop,
|
||||
scrollHeight: element.scrollHeight,
|
||||
clientHeight: element.clientHeight
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user