Skip to content

Commit

Permalink
Don't stop wheel event propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 9, 2021
1 parent 9bdefa7 commit 918ebda
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
xterm.raw.focus();
}));

this._register(dom.addDisposableListener(xterm.raw.element, 'wheel', (e) => {
if (this._hasScrollBar && e.shiftKey) {
e.stopImmediatePropagation();
e.preventDefault();
}
}));

// xterm.js currently drops selection on keyup as we need to handle this case.
this._register(dom.addDisposableListener(xterm.raw.element, 'keyup', () => {
// Wait until keyup has propagated through the DOM before evaluating
Expand Down

0 comments on commit 918ebda

Please sign in to comment.