Skip to content

Commit

Permalink
Merge pull request #4783 from Tyriar/4781
Browse files Browse the repository at this point in the history
Fix regression in force mouse selection
  • Loading branch information
Tyriar authored Sep 10, 2023
2 parents 4241704 + b55d699 commit fc18e6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/browser/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,10 +729,8 @@ export class Terminal extends CoreTerminal implements ITerminal {

if (!(events & CoreMouseEventType.UP)) {
this._document!.removeEventListener('mouseup', requestedEvents.mouseup!);
el.removeEventListener('mouseup', requestedEvents.mouseup!);
requestedEvents.mouseup = null;
} else if (!requestedEvents.mouseup) {
el.addEventListener('mouseup', eventListeners.mouseup);
requestedEvents.mouseup = eventListeners.mouseup;
}

Expand Down

0 comments on commit fc18e6e

Please sign in to comment.