Disable onScroll event during application mode

Fixes #235
This commit is contained in:
Daniel Imms
2016-08-19 12:52:13 -07:00
parent 6e8e78db57
commit 588d3b12e0
+4
View File
@@ -425,6 +425,10 @@
* @param {Event} ev The scroll event.
*/
Viewport.prototype.onScroll = function(ev) {
if (this.isApplicationMode) {
// Scrolling via the scroll bar is disabled during application mode
return;
}
var newRow = Math.round(this.viewportElement.scrollTop / this.currentRowHeight);
var diff = newRow - this.terminal.ydisp;
this.terminal.scrollDisp(diff, true);