mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
bug fix chevron not disappearing after window resize back to desktop
This commit is contained in:
1 parent
3596a13b4b
commit
efaff62028
1 file changed
+8
@@ -59,6 +59,14 @@ export default function SelectionBubbles({
|
||||
}
|
||||
}, [options]);
|
||||
|
||||
useEffect(() => {
|
||||
const handleResize = () => {
|
||||
handleScroll();
|
||||
};
|
||||
window.addEventListener("resize", handleResize);
|
||||
return () => window.removeEventListener("resize", handleResize);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`selection-bubbles-wrapper ${
|
||||
|
||||
Reference in new issue
Block a user