Skip to content

Commit

Permalink
Turn off native scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
goranprijic committed May 18, 2016
1 parent 13bc227 commit 23b43f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion assets/js/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
self.wrapElement;
self.process;

BaseTerminal.call(this);
BaseTerminal.call(this, {nativeScroll: false});

self._restoreOptions(options);
self.open();
Expand Down Expand Up @@ -42,6 +42,10 @@
this.wrapElement = document.createElement('div');
this.wrapElement.className = 'window';

if (!this.nativeScroll) {
this.wrapElement.style.overflowY = "hidden";
}

return this._open(this.wrapElement);
};

Expand Down
2 changes: 1 addition & 1 deletion assets/styl/terminal.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
box-sizing: border-box
box-shadow: none
border: 2px solid color-gray-dark
overflow-y: auto !important
overflow-y: auto
overflow-x: hidden !important

.terminal
Expand Down

0 comments on commit 23b43f3

Please sign in to comment.