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(); }; /**