mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #849 from Tyriar/848_cancel_event_on_wheel
Properly cancel event when in mouse mode
This commit is contained in:
+2
-1
@@ -1086,7 +1086,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
||||
if (!this.mouseEvents) return;
|
||||
if (this.x10Mouse || this.vt300Mouse || this.decLocator) return;
|
||||
sendButton(ev);
|
||||
return this.cancel(ev);
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
// allow wheel scrolling in
|
||||
@@ -2221,6 +2221,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
||||
this.buffer.tabs[this.buffer.x] = true;
|
||||
}
|
||||
|
||||
// TODO: Remove cancel function and cancelEvents option
|
||||
public cancel(ev: Event, force?: boolean): boolean {
|
||||
if (!this.options.cancelEvents && !force) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user