event-move Module
Defined in:
yui3/src/event-gestures/js/Move.js:1
Adds lower level support for "gesturemovestart", "gesturemove" and "gesturemoveend" events, which can be used to create drag/drop interactions which work across touch and mouse input devices. They correspond to "touchstart", "touchmove" and "touchend" on a touch input device, and "mousedown", "mousemove", "mouseup" on a mouse based input device.
<p>Documentation for the gesturemove triplet of events can be found on the <a href="../classes/YUI.html#event_gesturemove">YUI</a> global, along with the other supported events.</p>
Example:
YUI().use('event-move', function (Y) {
Y.one('#myNode').on('gesturemovestart', function (e) {
Y.log('gesturemovestart Fired.');
});
Y.one('#myNode').on('gesturemove', function (e) {
Y.log('gesturemove Fired.');
});
Y.one('#myNode').on('gesturemoveend', function (e) {
Y.log('gesturemoveend Fired.');
});
});