Skip to content

Commit

Permalink
feat: 提升选取剪藏的兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
moshangqi committed Dec 18, 2023
1 parent 48de0cb commit 8ba1216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/inject/AreaSelector/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ function App(props: IAppProps) {
}, 200);
};

window.addEventListener('mouseover', handleMouseOver);
window.addEventListener('mouseover', handleMouseOver, true);
window.addEventListener('click', onToggleSelect, true);
return () => {
window.removeEventListener('mouseover', handleMouseOver);
window.removeEventListener('mouseover', handleMouseOver, true);
window.removeEventListener('click', onToggleSelect, true);
};
}, []);
Expand Down

0 comments on commit 8ba1216

Please sign in to comment.