Allow wheel events in application mode
This change allows wheel events in application mode which fixes mouse wheel scrolling in oh-my-zsh and powershell for Linux (among others). Along with #287 a functional scroll bar will also be usable in those shells. Fixes #151
This commit is contained in:
@@ -1017,7 +1017,6 @@ Terminal.prototype.bindMouse = function() {
|
|||||||
// the shell for example
|
// the shell for example
|
||||||
on(el, 'wheel', function(ev) {
|
on(el, 'wheel', function(ev) {
|
||||||
if (self.mouseEvents) return;
|
if (self.mouseEvents) return;
|
||||||
if (self.applicationKeypad) return;
|
|
||||||
self.viewport.onWheel(ev);
|
self.viewport.onWheel(ev);
|
||||||
return self.cancel(ev);
|
return self.cancel(ev);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user