mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-25 16:54:21 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user