From 184d8cfd78aeb1e91fdd5e05f1c17ed964407c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chen=20=E2=98=81=EF=B8=8F=E2=98=81=EF=B8=8F?= <44057776+single-thread@users.noreply.github.com> Date: Wed, 27 Apr 2022 21:56:06 +0800 Subject: [PATCH] [fix] duplicate code (#651) --- packages/core/src/hooks/useShapeEvents.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/src/hooks/useShapeEvents.tsx b/packages/core/src/hooks/useShapeEvents.tsx index b72556029..416004406 100644 --- a/packages/core/src/hooks/useShapeEvents.tsx +++ b/packages/core/src/hooks/useShapeEvents.tsx @@ -11,7 +11,6 @@ export function useShapeEvents(id: string) { if ((e as any).dead) return else (e as any).dead = true if (!inputs.pointerIsValid(e)) return - if (!inputs.pointerIsValid(e)) return if (e.button === 2) { callbacks.onRightPointShape?.(inputs.pointerDown(e, id), e) return