mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix #2
This commit is contained in:
+2
-2
@@ -916,9 +916,9 @@ Terminal.prototype.bindMouse = function() {
|
||||
if (self.mouseEvents) return;
|
||||
if (self.applicationKeypad) return;
|
||||
if (ev.type === 'DOMMouseScroll') {
|
||||
self.scrollDisp(ev.detail < 0 ? -5 : 5);
|
||||
self.scrollDisp(ev.detail < 0 ? -1 : 1);
|
||||
} else {
|
||||
self.scrollDisp(ev.wheelDeltaY > 0 ? -5 : 5);
|
||||
self.scrollDisp(ev.wheelDeltaY > 0 ? -1 : 1);
|
||||
}
|
||||
return self.cancel(ev);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user