提交 7f404bfc 编写于 作者: D Daniel Imms

Pass WheelEvent from terminal panel to xterm

This fixes the right-portion of the screen not scrolling (where the lines don't reach)

Fixes #6743
上级 2f0254d0
......@@ -153,6 +153,10 @@ export class TerminalInstance {
}
}
public dispatchEvent(event: Event) {
this.terminal.element.dispatchEvent(event);
}
public dispose(): void {
this.parentDomElement.removeChild(this.wrapperElement);
this.wrapperElement = null;
......
......@@ -5,6 +5,7 @@
import lifecycle = require('vs/base/common/lifecycle');
import platform = require('vs/base/common/platform');
import DOM = require('vs/base/browser/dom');
import {TPromise} from 'vs/base/common/winjs.base';
import {Builder, Dimension} from 'vs/base/browser/builder';
import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
......@@ -47,6 +48,9 @@ export class TerminalPanel extends Panel {
this.themeStyleElement = document.createElement('style');
this.parentDomElement.appendChild(this.themeStyleElement);
this.configurationHelper = new TerminalConfigHelper(platform.platform, this.configurationService, this.parentDomElement);
this.toDispose.push(DOM.addDisposableListener(this.parentDomElement, 'wheel', (event: WheelEvent) => {
this.terminalInstance.dispatchEvent(new WheelEvent(event.type, event));
}));
return this.createTerminal();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册