mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-30 19:05:07 +00:00
Merge pull request #236 from Tyriar/235_fix_scroll_to_top_on_app_mode
Disable onScroll event during application mode
This commit is contained in:
commit
fc16752cec
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user