Skip to content

Commit

Permalink
fix: set passive to true to eliminate the warning of Chrome (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Sep 14, 2023
1 parent 3453279 commit 0afecc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Hover = {
el?.classList.add(className);
}, startTime);
},
false,
{ capture: false, passive: true },
);

el.addEventListener(
Expand Down

0 comments on commit 0afecc8

Please sign in to comment.