Skip to content

Commit

Permalink
Fix default rejection strategy
Browse files Browse the repository at this point in the history
It needs to return true so the calling function can return null.
  • Loading branch information
tomhicks-bsf committed Jan 29, 2016
1 parent f0c70ff commit f7c59f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaultClickRejectionStrategy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function(lastTouchEvent, clickTimestamp) {
if (lastTouchEvent && (clickTimestamp - lastTouchEvent) < 750) {
return null;
return true;
}
};

0 comments on commit f7c59f0

Please sign in to comment.