From 8d3305cd04f8101706db73c4d5f162bc33ab6e47 Mon Sep 17 00:00:00 2001 From: yjnoh Date: Thu, 5 Jun 2025 10:49:44 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BA=94=EB=B2=84=EC=8A=A4=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [작업내용] : 캔버스 화면에서 이벤트 발생 후 캔버스 없는 페이지로 이동시 발생하는 오류 수정 --- src/hooks/useEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useEvent.js b/src/hooks/useEvent.js index 8b7b687d..43328376 100644 --- a/src/hooks/useEvent.js +++ b/src/hooks/useEvent.js @@ -401,7 +401,7 @@ export function useEvent() { const removeMouseEvent = (type) => { mouseEventListeners.current = mouseEventListeners.current.filter((event) => { if (event.eventType === type) { - canvas.off(type, event.handler) + canvas?.off(type, event.handler) return false } return true