//>>built
define("dojox/gesture/swipe",["dojo/_base/kernel","dojo/_base/declare","./Base","../main"],function(e,h,k,f){e.experimental("dojox.gesture.swipe");e=h(k,{defaultEvent:"swipe",subEvents:["end"],press:function(a,b){b.touches&&2<=b.touches.length?delete a.context:(a.context||(a.context={x:0,y:0,t:0}),a.context.x=b.screenX,a.context.y=b.screenY,a.context.t=(new Date).getTime(),this.lock(b.currentTarget))},move:function(a,b){this._recognize(a,b,"swipe")},release:function(a,b){this._recognize(a,b,"swipe.end");
delete a.context;this.unLock()},cancel:function(a,b){delete a.context;this.unLock()},_recognize:function(a,b,c){a.context&&(a=this._getSwipeInfo(a,b))&&(a.type=c,this.fire(b.target,a))},_getSwipeInfo:function(a,b){var c={};var d=a.context;c.time=(new Date).getTime()-d.t;var g=b.screenX-d.x;d=b.screenY-d.y;if(0===g&&0===d)return null;c.dx=g;c.dy=d;return c}});f.gesture.swipe=new e;f.gesture.swipe.Swipe=e;return f.gesture.swipe});