From fe905bace58d7ef11833a716c704684ccfdfbebe Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 3 Aug 2016 12:49:12 -0700 Subject: [PATCH] Prevent the page from scrolling when the terminal scrolls --- src/xterm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index 27918aa5..ffefbb39 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -413,6 +413,8 @@ multiplier = this.currentRowHeight * this.terminal.rows; } this.viewportElement.scrollTop += ev.deltaY * multiplier; + // Prevent the page from scrolling when the terminal scrolls + ev.preventDefault(); }; /**