From 095a27be06c1f6d24729264bd78f9999f87fe62f Mon Sep 17 00:00:00 2001 From: David Flanagan Date: Thu, 5 Mar 2015 12:34:54 -0800 Subject: [PATCH] partial workaround for bug 1139575 --- gesture.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gesture.js b/gesture.js index 54ed978..a514580 100644 --- a/gesture.js +++ b/gesture.js @@ -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 = {