Skip to content

Commit

Permalink
comment for additional touches case
Browse files Browse the repository at this point in the history
  • Loading branch information
Urmit Patel committed Aug 19, 2020
1 parent 59d3859 commit 18f2e25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -166,6 +166,8 @@ function getHandlers(

const onMove = (event: HandledEvents) => {
set((state, props) => {
// Discount a swipe if additional touches are present after
// a swipe has started.
if ("touches" in event && event.touches.length > 1) {
return state;
}
Expand Down

0 comments on commit 18f2e25

Please sign in to comment.