src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/DragHelper.min.js
changeset 557 bca7a7e058a3
equal deleted inserted replaced
-1:000000000000 557:bca7a7e058a3
       
     1 define("tinymce/ui/DragHelper",["tinymce/ui/DomUtils"],function(a){function b(){var j=document,k,f,d,i;var g,l,e,c,h=Math.max;k=j.documentElement;f=j.body;d=h(k.scrollWidth,f.scrollWidth);i=h(k.clientWidth,f.clientWidth);g=h(k.offsetWidth,f.offsetWidth);l=h(k.scrollHeight,f.scrollHeight);e=h(k.clientHeight,f.clientHeight);c=h(k.offsetHeight,f.offsetHeight);return{width:d<g?i:d,height:l<c?e:l}}return function(d,f){var m,l=document,c,e,k,i,h,g;f=f||{};function j(){return l.getElementById(f.handle||d)}e=function(o){var q=b(),n,p;o.preventDefault();c=o.button;n=j();h=o.screenX;g=o.screenY;if(window.getComputedStyle){p=window.getComputedStyle(n,null).getPropertyValue("cursor")}else{p=n.runtimeStyle.cursor}m=l.createElement("div");a.css(m,{position:"absolute",top:0,left:0,width:q.width,height:q.height,zIndex:2147483647,opacity:0.0001,cursor:p});l.body.appendChild(m);a.on(l,"mousemove",i);a.on(l,"mouseup",k);f.start(o)};i=function(n){if(n.button!==c){return k(n)}n.deltaX=n.screenX-h;n.deltaY=n.screenY-g;n.preventDefault();f.drag(n)};k=function(n){a.off(l,"mousemove",i);a.off(l,"mouseup",k);m.parentNode.removeChild(m);if(f.stop){f.stop(n)}};this.destroy=function(){a.off(j())};a.on(j(),"mousedown",e)}});