Merge pull request #1246 from danielyxie/dev

fix terminal scrolling
This commit is contained in:
hydroflame 2021-09-14 14:55:03 -04:00 committed by GitHub
commit 2833b881ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

@ -111,6 +111,7 @@ const Engine = {
loadTerminalContent: function () {
Engine.hideAllContent();
Engine.Display.terminalContent.style.display = "block";
document.getElementById("terminal-input-td").scrollIntoView(false);
routing.navigateTo(Page.Terminal);
MainMenuLinks.Terminal.classList.add("active");
},
@ -358,6 +359,7 @@ const Engine = {
Engine.Display.terminalContent.style.display = "none";
Engine.Display.content.style.display = "none";
Engine.Display.content.scrollTop = 0;
ReactDOM.unmountComponentAtNode(Engine.Display.content);
Engine.Display.infiltrationContent.style.display = "none";