Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Thomas @ BeeDesk thomasyip authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src/gestures.js
4 src/gestures.js
@@ -404,7 +404,7 @@ function TouchLayer (el, type, fn, options) {
404 404 };
405 405
406 406 TouchLayer.prototype = {
407   - moveThreshold: 10, // 2 pixels minimum, default=10
  407 + moveThreshold: 2, // 2 pixels minimum, default=10
408 408 neededTouches: 1,
409 409
410 410 handleEvent: function (e) {
@@ -578,7 +578,7 @@ TouchLayer.prototype = {
578 578
579 579 that.options.onBeforeEnd.call(that, e);
580 580
581   - that.fingers = $.isTouch ? e.touches.length : 1;
  581 + that.fingers = $.isTouch ? e.touches.length : 0;
582 582
583 583 if (that.fingers != 0) {
584 584 return;

0 comments on commit d1e926a

Please sign in to comment.
Something went wrong with that request. Please try again.