define(["Ti/_/declare","Ti/_/lang"],function(e,n){function c(e,n){return t&&Math.abs(t.x-e)<u&&Math.abs(t.y-n)<u}var t,l,u=25;return n.setObject("Ti._.Gestures.SingleTap",{processTouchStartEvent:function(e){var n=e.changedTouches;1==e.touches.length&&1==n.length&&(t={x:n[0].clientX,y:n[0].clientY},l=!1)},processTouchEndEvent:function(e){var n=e.changedTouches,u=n[0].clientX,s=n[0].clientY,h={singletap:[],click:[]};return 0===e.touches.length&&1===n.length&&c(u,s)&&!l&&(h.singletap.push({x:u,y:s}),h.click.push({x:u,y:s}),t=null),h},processTouchMoveEvent:function(e){var n=e.changedTouches;l=1==n.length&&!c(n[0].clientX,n[0].clientY)},processTouchCancelEvent:function(){t=null}})});