event-flick-debug.js revision c085d8015ca7637ffa99e3bf8c9af0136e593d59
// 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
});