From 7a6e65a22130845f15d462e03d255195f42f2885 Mon Sep 17 00:00:00 2001 From: CatyJazzy <157210807+CatyJazzy@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:30:02 +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=EC=8B=9C=20=EC=9D=B4=EB=8F=99?= =?UTF-8?q?=EB=AA=A8=EB=93=9C=20=EC=9E=90=EB=8F=99=20=ED=99=9C=EC=84=B1?= =?UTF-8?q?=ED=99=94=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 노드 위 우클릭 시 이동모드 활성화되는 것 방지 --- 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,