dd-ddm-min.js revision df8a9924d677977dd4f7bd20f342a9fbac997821
YUI.add("dd-ddm",function(B){var A="gesturemove";B.mix(B.DD.DDM,{_pg:null,_debugShim:false,_activateTargets:function(){},_deactivateTargets:function(){},_startDrag:function(){if(this.activeDrag&&this.activeDrag.get("useShim")){this._pg_activate();this._activateTargets();}},_endDrag:function(){this._pg_deactivate();this._deactivateTargets();},_pg_deactivate:function(){this._pg.setStyle("display","none");},_pg_activate:function(){var C=this.activeDrag.get("activeHandle"),D="auto";if(C){D=C.getStyle("cursor");}if(D=="auto"){D=this.get("dragCursor");}this._pg_size();this._pg.setStyles({top:0,left:0,display:"block",opacity:((this._debugShim)?".5":"0"),cursor:D});},_pg_size:function(){if(this.activeDrag){var C=B.one("body"),E=C.get("docHeight"),D=C.get("docWidth");this._pg.setStyles({height:E+"px",width:D+"px"});}},_createPG:function(){var E=B.Node.create("<div></div>"),C=B.one("body"),D;E.setStyles({top:"0",left:"0",position:"absolute",zIndex:"9999",overflow:"hidden",backgroundColor:"red",display:"none",height:"5px",width:"5px"});E.set("id",B.stamp(E));E.addClass("yui3-dd-shim");C.prepend(E);this._pg=E;this._pg.on(A,B.throttle(B.bind(this._move,this),this.get("throttleTime")));this._pg.on(A+"end",B.bind(this._end,this));D=B.one("win");B.on("window:resize",B.bind(this._pg_size,this));D.on("scroll",B.bind(this._pg_size,this));}},true);},"@VERSION@",{skinnable:false,requires:["dd-ddm-base","event-resize"]});