Skip to content

Commit

Permalink
fix: 이동모드 활성화 함수에서 button 판별오류 수정 (#196)
Browse files Browse the repository at this point in the history
* fix: mouse-event에 대해서만 button 판별하도록 수정
  • Loading branch information
CatyJazzy authored Dec 2, 2024
1 parent 46dec06 commit 7b57dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/hooks/useMoveNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function useMoveNode({ nodes, spaceActions }: useMoveNodeProps) {
// onMouseDown, onTouchStart
const startHold = (node: Node, e: KonvaInteractionEvent) => {
// 우클릭으로 이벤트가 발생했을 경우 이동모드 활성화 방지
if (e.evt.button === 2) {
if (e.evt instanceof MouseEvent && e.evt.button === 2) {
return;
}

Expand Down

0 comments on commit 7b57dff

Please sign in to comment.