Permalink
Browse files

Fixed a bug on event end. Should be 0 for mouseup. Adjusted moveThres…

…hold to 2. It works better with iscroll.
  • Loading branch information...
1 parent 529014a commit d1e926adae2729b664557c494993778b482aa69a @thomasyip thomasyip committed Dec 6, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gestures.js
View
@@ -404,7 +404,7 @@ function TouchLayer (el, type, fn, options) {
};
TouchLayer.prototype = {
- moveThreshold: 10, // 2 pixels minimum, default=10
+ moveThreshold: 2, // 2 pixels minimum, default=10
neededTouches: 1,
handleEvent: function (e) {
@@ -578,7 +578,7 @@ TouchLayer.prototype = {
that.options.onBeforeEnd.call(that, e);
- that.fingers = $.isTouch ? e.touches.length : 1;
+ that.fingers = $.isTouch ? e.touches.length : 0;
if (that.fingers != 0) {
return;

0 comments on commit d1e926a

Please sign in to comment.