Skip to content

Commit 461bff5

Browse files
author
Ritika Mishra
committed
fixed resize issue
1 parent 86d8762 commit 461bff5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/components/Canvas.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,18 +382,6 @@ const Canvas = forwardRef(
382382

383383
}, [animate]);
384384

385-
useEffect(() => {
386-
const handleResize = () => {
387-
createCanvases();
388-
};
389-
390-
window.addEventListener("resize", handleResize);
391-
392-
return () => {
393-
window.removeEventListener("resize", handleResize);
394-
};
395-
}, [createCanvases,]);
396-
397385
return (
398386
<main className=" flex flex-col flex-[1_1_0%] min-h-80 bg-highlight rounded-2xl m-4 relative"
399387
ref={canvasContainerRef}

0 commit comments

Comments
 (0)