Prevent the page from scrolling when the terminal scrolls
This commit is contained in:
@@ -413,6 +413,8 @@
|
|||||||
multiplier = this.currentRowHeight * this.terminal.rows;
|
multiplier = this.currentRowHeight * this.terminal.rows;
|
||||||
}
|
}
|
||||||
this.viewportElement.scrollTop += ev.deltaY * multiplier;
|
this.viewportElement.scrollTop += ev.deltaY * multiplier;
|
||||||
|
// Prevent the page from scrolling when the terminal scrolls
|
||||||
|
ev.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user