Have linkifier2 use screen element for link detection

Fixes #3579
This commit is contained in:
Daniel Imms
2021-12-20 08:46:13 -08:00
parent cde4277e84
commit 9a920a10f3
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
this.register(this._mouseZoneManager);
this.register(this.onScroll(() => this._mouseZoneManager!.clearAll()));
this.linkifier.attachToDom(this.element, this._mouseZoneManager);
this.linkifier2.attachToDom(this.element, this._mouseService, this._renderService);
this.linkifier2.attachToDom(this.screenElement, this._mouseService, this._renderService);
// This event listener must be registered aftre MouseZoneManager is created
this.register(addDisposableDomListener(this.element, 'mousedown', (e: MouseEvent) => this._selectionService!.onMouseDown(e)));