From 588d3b12e0db560fa58a1238efc878695f8d4f1b Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 19 Aug 2016 12:52:13 -0700 Subject: [PATCH] Disable onScroll event during application mode Fixes #235 --- src/xterm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index ae29df0b..b7032b39 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -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);