Fixed glance not working on links that registered that prevented click event to happen (closes https://github.com/zen-browser/desktop/issues/2480)

This commit is contained in:
mr. M
2024-12-21 20:29:16 +01:00
parent 47f66049d7
commit c0515c961e

View File

@@ -44,7 +44,7 @@ export class ZenGlanceChild extends JSWindowActorChild {
this.contentWindow.document.removeEventListener('click', this.clickListener);
} else if (activationMethod === 'ctrl' || activationMethod === 'alt' || activationMethod === 'shift') {
this.contentWindow.document.addEventListener('click', this.clickListener);
this.contentWindow.document.addEventListener('click', this.clickListener, { capture: true });
this.contentWindow.removeEventListener('mousedown', this.mouseDownListener);
this.contentWindow.removeEventListener('mouseup', this.mouseUpListener);