Skip to content

Commit

Permalink
fix: p1 is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou committed Feb 2, 2024
1 parent 35bd266 commit 98f1722
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default (props: Props) => {
})
scaleDatas.end()
}
} else {
} else if (Object.values(pointersData).filter((e) => e?.isDowned).length >= 2) {
// タッチしているポインターが2つ以上
const downedPointers = Object.values(pointersData).filter((e) => e?.isDowned)
const p0 = downedPointers[0]!
Expand Down

0 comments on commit 98f1722

Please sign in to comment.