]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/javascript/yui3/build/dd/dd-gestures.js
Release 6.5.0
[Github/sugarcrm.git] / include / javascript / yui3 / build / dd / dd-gestures.js
1 /*
2  Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3  Code licensed under the BSD License:
4  http://developer.yahoo.com/yui/license.html
5  version: 3.3.0
6  build: 3167
7  */
8 YUI.add('dd-gestures',function(Y){Y.DD.Drag.START_EVENT='gesturemovestart';Y.DD.Drag.prototype._prep=function(){this._dragThreshMet=false;var node=this.get('node'),DDM=Y.DD.DDM;node.addClass(DDM.CSS_PREFIX+'-draggable');node.on(Y.DD.Drag.START_EVENT,Y.bind(this._handleMouseDownEvent,this),{minDistance:0,minTime:0});node.on('gesturemoveend',Y.bind(this._handleMouseUp,this),{standAlone:true});node.on('dragstart',Y.bind(this._fixDragStart,this));};Y.DD.DDM._setupListeners=function(){var DDM=Y.DD.DDM;this._createPG();this._active=true;Y.one(Y.config.doc).on('gesturemove',Y.throttle(Y.bind(DDM._move,DDM),DDM.get('throttleTime')),{standAlone:true});};},'3.3.0',{skinnable:false,requires:['dd-drag','event-synthetic','event-gestures']});