[fix] duplicate code (#651)

This commit is contained in:
Chen ☁️☁️ 2022-04-27 21:56:06 +08:00 committed by GitHub
parent 79204d7ba5
commit 184d8cfd78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,6 @@ export function useShapeEvents(id: string) {
if ((e as any).dead) return if ((e as any).dead) return
else (e as any).dead = true else (e as any).dead = true
if (!inputs.pointerIsValid(e)) return if (!inputs.pointerIsValid(e)) return
if (!inputs.pointerIsValid(e)) return
if (e.button === 2) { if (e.button === 2) {
callbacks.onRightPointShape?.(inputs.pointerDown(e, id), e) callbacks.onRightPointShape?.(inputs.pointerDown(e, id), e)
return return