Skip to content

Commit

Permalink
return if more than one finger is detected (thanks Ibe Van Dijck)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Birdsall committed Nov 4, 2011
1 parent 0f1b3ce commit 7612ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ Swipe.prototype = {
},

onTouchMove: function(e) {

// ensure swiping with one touch and not pinching
if(e.touches.length > 1 || e.scale !== 1) return;

this.deltaX = e.touches[0].pageX - this.start.pageX;

Expand Down
2 changes: 1 addition & 1 deletion swipe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7612ca9

Please sign in to comment.