event-flick.js revision c5a7a54dce50d0c8b85e9802d8f734bff8855e8d
// TODO: Better way to sniff 'n' switch touch support?
start: "touchstart",
end: "touchend"
} : {
start: "mousedown",
end: "mouseup"
},
START = "start",
END = "end",
OWNER_DOCUMENT = "ownerDocument",
MIN_VELOCITY = "minVelocity",
MIN_DISTANCE = "minDistance",
_FLICK_START = "_fs",
_FLICK_START_HANDLE = "_fsh",
_FLICK_END_HANDLE = "_feh",
NODE_TYPE = "nodeType";
null, // Don't want stuff mixed into the facade
node,
ce);
},
if (startHandle) {
}
if (endHandle) {
}
},
processArgs: function(args) {
if (!(MIN_VELOCITY in params)) {
}
if (!(MIN_DISTANCE in params)) {
}
return params;
},
var start = true, // always true for mouse
doc;
if (e.touches) {
e = e.touches[0];
}
if (start) {
e.preventDefault();
_e : e
});
if (!endHandle) {
}
}
},
endEvent = e,
time,
axis;
if (valid) {
if (e.changedTouches) {
} else {
valid = false;
}
}
if (valid) {
xyDistance = [
];
end : {
_e : e
}
});
}
}
}
},
MIN_VELOCITY : 0,
MIN_DISTANCE : 10
});