Browse Source

Fix scroll console behavior always scrolling the window

Lucas de Souza 5 years ago
parent
commit
edfbb3d3ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/io/domConsole.js

+ 2 - 2
js/io/domConsole.js

@@ -206,7 +206,7 @@ export class DOMConsole {
 
   scrollTerm () {
     //scrollIt(this.inputDiv.previousSibling,200);
-    this.inputDiv.previousSibling.scrollIntoView();
+    this.inputDiv.previousSibling.scrollIntoView(false);
   }
 
   focus () {
@@ -218,7 +218,7 @@ export class DOMConsole {
     }
     const prev = this.inputDiv.closest('div');
     if(prev != null)
-      prev.scrollIntoView();
+      prev.scrollIntoView(false);
   }
 
   hide () {