define(["Ti/_/declare","Ti/_/lang"],function(e,n){function c(e,n){t=Date.now(),l={x:e,y:n}}var t=null,l=null,u=250,a=25;return n.setObject("Ti._.Gestures.DoubleTap",{processTouchEndEvent:function(e){if(0===e.touches.length&&1===e.changedTouches.length){var n=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY,s={doubletap:[],dblclick:[]},o=Date.now()-t;if(t){if(t=null,u>o&&Math.abs(l.x-n)<a&&Math.abs(l.y-i)<a)return s.doubletap.push({x:n,y:i}),s.dblclick.push({x:n,y:i}),s;c(n,i)}else c(n,i)}},processTouchCancelEvent:function(){this._firstTapTime=null}})});