Prevent the page from scrolling when the terminal scrolls

This commit is contained in:
Daniel Imms
2016-08-03 12:49:12 -07:00
parent e7e1434293
commit fe905bace5
+2
View File
@@ -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();
};
/**