Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Only enqueue pointer events for gestures if the pointer is down
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 13, 2013
1 parent b6006f4 commit d2af0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d2af0f9

Please sign in to comment.