From a66c06b60b164bee8d9b2a420ede3f2cd6c60c0d Mon Sep 17 00:00:00 2001 From: CatyJazzy Date: Mon, 2 Dec 2024 18:21:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=85=B8=EB=93=9C=20=EC=9C=84=20?= =?UTF-8?q?=EC=9A=B0=ED=81=B4=EB=A6=AD=20=EC=8B=9C=20=EC=9D=B4=EB=8F=99?= =?UTF-8?q?=EB=AA=A8=EB=93=9C=20=ED=99=9C=EC=84=B1=ED=99=94=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EA=B2=83=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/hooks/useMoveNode.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/src/hooks/useMoveNode.ts b/packages/frontend/src/hooks/useMoveNode.ts index 4f0ee6d4..fea8a6bc 100644 --- a/packages/frontend/src/hooks/useMoveNode.ts +++ b/packages/frontend/src/hooks/useMoveNode.ts @@ -64,6 +64,11 @@ export default function useMoveNode({ nodes, spaceActions }: useMoveNodeProps) { // onMouseDown, onTouchStart const startHold = (node: Node, e: KonvaInteractionEvent) => { + // 우클릭으로 이벤트가 발생했을 경우 이동모드 활성화 방지 + if (e.evt.button === 2) { + return; + } + setMoveState((prev) => ({ ...prev, isHolding: true,