drag-gestures.js revision 0f1450734e0b54ad8aff1d00e374ced2a37e1444
Y.log('Drag gesture support loaded', 'info', 'drag-gestures');
Y.DD.Drag.prototype._prep = function() {
Y.log('Using DD override prep to attach gesture events', 'info', 'drag-gestures');
this._dragThreshMet = false;
var node = this.get('node'), DDM = Y.DD.DDM;
node.addClass(DDM.CSS_PREFIX + '-draggable');
node.on('gesturemovestart', Y.bind(this._handleMouseDownEvent, this), {
minDistance: 0,
minTime: 0
});
node.setData('dd', true);
node.on('gesturemoveend', Y.bind(this._handleMouseUp, this), { standAlone: true });
node.on('dragstart', Y.bind(this._fixDragStart, this));
node.on('gesturemove', Y.throttle(Y.bind(DDM._move, DDM), DDM.get('throttleTime')), { standAlone: true });
};
Y.DD.DDM._setupListeners = function() {
this._createPG();
this._active = true;
};