/* * Copyright (c) 2016 Bernardo Castilho * * Licensed under the MIT License (MIT) */ var DragDropTouch;!function(t){"use strict";var e=(Object.defineProperty(i.prototype,"dropEffect",{get:function(){return this._dropEffect},set:function(t){this._dropEffect=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"effectAllowed",{get:function(){return this._effectAllowed},set:function(t){this._effectAllowed=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"types",{get:function(){return Object.keys(this._data)},enumerable:!0,configurable:!0}),i.prototype.clearData=function(t){null!=t?delete this._data[t]:this._data=null},i.prototype.getData=function(t){return this._data[t]||""},i.prototype.setData=function(t,e){this._data[t]=e},i.prototype.setDragImage=function(t,e,i){var s=o._instance;s._imgCustom=t,s._imgOffset={x:e,y:i}},i);function i(){this._dropEffect="move",this._effectAllowed="all",this._data={}}t.DataTransfer=e;var o=(a.getInstance=function(){return a._instance},a.prototype._touchstart=function(t){var e=this;if(this._shouldHandle(t)){if(Date.now()-this._lastClicka._PRESSHOLDMARGIN},a.prototype._shouldStartDragging=function(t){var e=this._getDelta(t);return a._THRESHOLD