Skip to content

Commit

Permalink
fix: make the event listener on the window to use the capture option
Browse files Browse the repository at this point in the history
  • Loading branch information
Varixo committed Apr 3, 2024
1 parent 3ba872e commit 5aaa5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik/src/qwikloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const qwikLoader = (doc: Document, hasInitialized?: number) => {
for (const eventName of eventNames) {
if (!events.has(eventName)) {
addEventListener(doc, eventName, processDocumentEvent, true);
addEventListener(win, eventName, processWindowEvent);
addEventListener(win, eventName, processWindowEvent, true);
events.add(eventName);
}
}
Expand Down

0 comments on commit 5aaa5b6

Please sign in to comment.