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:
@@ -425,6 +425,10 @@
|
|||||||
* @param {Event} ev The scroll event.
|
* @param {Event} ev The scroll event.
|
||||||
*/
|
*/
|
||||||
Viewport.prototype.onScroll = function(ev) {
|
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 newRow = Math.round(this.viewportElement.scrollTop / this.currentRowHeight);
|
||||||
var diff = newRow - this.terminal.ydisp;
|
var diff = newRow - this.terminal.ydisp;
|
||||||
this.terminal.scrollDisp(diff, true);
|
this.terminal.scrollDisp(diff, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user