Edit File: jquery.ui.touch-punch.min.js
/*0.2.3*/ !function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,o=t.ui.mouse.prototype,u=o._mouseInit,n=o._mouseDestroy;o._touchStart=function(o){!e&&this._mouseCapture(o.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,c(o,"mouseover"),c(o,"mousemove"),c(o,"mousedown"))},o._touchMove=function(o){e&&(this._touchMoved=!0,c(o,"mousemove"))},o._touchEnd=function(o){e&&(c(o,"mouseup"),c(o,"mouseout"),this._touchMoved||c(o,"click"),e=!1)},o._mouseInit=function(){var o=this;o.element.bind({touchstart:t.proxy(o,"_touchStart"),touchmove:t.proxy(o,"_touchMove"),touchend:t.proxy(o,"_touchEnd")}),u.call(o)},o._mouseDestroy=function(){var o=this;o.element.unbind({touchstart:t.proxy(o,"_touchStart"),touchmove:t.proxy(o,"_touchMove"),touchend:t.proxy(o,"_touchEnd")}),n.call(o)}}function c(o,t){if(!(1<o.originalEvent.touches.length)){o.preventDefault();var e=o.originalEvent.changedTouches[0],u=document.createEvent("MouseEvents");u.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(u)}}}(jQuery);
Back to File Manager