Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
partial workaround for bug 1139575
Browse files Browse the repository at this point in the history
  • Loading branch information
David Flanagan committed Mar 5, 2015
1 parent ca40c37 commit 095a27b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gesture.js
Expand Up @@ -256,7 +256,12 @@
throw new Error('touchend');
}
if (endTouches.length !== startTouches.length) {
throw new Error('wrong number of touches');
// This should not happen, but it does happen for unknown reasons
// See bug 1139575. If we throw an error here it aborts the gesture
// and makes it hard for the user to swipe on some devices.
// So instead we just return false and act like it never happened
// throw new Error('wrong number of touches');
return false;
}

var data = {
Expand Down

0 comments on commit 095a27b

Please sign in to comment.