From d2af0f91584d289d7ca488a655a23b74bcf1a9db Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 13 Aug 2013 14:02:58 -0700 Subject: [PATCH] Only enqueue pointer events for gestures if the pointer is down --- src/dispatcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatcher.js b/src/dispatcher.js index 047b119..1612a99 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -51,7 +51,8 @@ return; } var type = inEvent.type, fns; - if (fns = this.handlers[type]) { + // only trigger gestures if the pointer is down + if (inEvent.pressure && (fns = this.handlers[type])) { this.makeQueue(fns, inEvent); } this.handledEvents.set(inEvent, true);