define(["Ti/_/declare","Ti/_/lang"],function(e,c){var n=null,t=null,o=500,u=25;return c.setObject("Ti._.Gestures.LongPress",{processTouchStartEvent:function(e,c){var u=e.changedTouches,s=u[0].clientX,h=u[0].clientY;clearTimeout(n),1==e.touches.length&&1==e.changedTouches.length&&(t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY},n=setTimeout(function(){require("Ti/UI")._fireGestureEvents({longpress:[{x:s,y:h}]},c)},o))},processTouchEndEvent:function(e){0===e.touches.length&&1===e.changedTouches.length&&clearTimeout(n)},processTouchMoveEvent:function(e){(!t||Math.abs(t.x-e.changedTouches[0].clientX)>u||Math.abs(t.y-e.changedTouches[0].clientY)>u)&&clearTimeout(n)},processTouchCancelEvent:function(){clearTimeout(n)}})});