3 // fastclick doesnt increment event.detail for double, triple clicks
4 // as its a read only value, so this class works around that.
6 // should be 300ms, but the touch delays seem to mess up
7 var DOUBLE_TAP_TIME = 350;
9 var DoubleTapper = function() {
14 DoubleTapper.prototype.registerTap = function() {
18 clearTimeout(this._timeout);
19 this._timeout = setTimeout(function() {
23 return this._tapCount;
26 module.exports = DoubleTapper;