verticalDistanceThreshold: 75,
start: function (event) {
return {
time: +new Date(),
coords: [event.pageX, event.pageY],
origin: $(event.target)
};
},
stop: function (event) {
return {
time: +new Date(),
coords: [event.pageX, event.pageY]
};
},
isSweep: function (start, stop, checkTime) {
return (checkTime ? stop.time - start.time < $.event.special.sweep.durationThreshold : true) &&
Math.abs(start.coords[0] - stop.coords[0]) > $.event.special.sweep.horizontalDistanceThreshold &&
Math.abs(start.coords[1] - stop.coords[1]) < $.event.special.sweep.verticalDistanceThreshold;
},
add: $.event.delegateSpecial(function (handleObj) {
var thisObject = this,
$this = $(thisObject);
handleObj.pointerdown = function (event) {
var start = $.event.special.sweep.start(event),
stop;