Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit d1e926adae2729b664557c494993778b482aa69a 1 parent 529014a
@thomasyip thomasyip authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gestures.js
View
4 src/gestures.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.