Файл: static/js/jquery_ui_touch.js
Строк: 54
<?php
(function(f){f.support.touch="ontouchend" in document;if(!f.support.touch){return}var j=f.ui.mouse.prototype,h=j._mouseInit,g;function i(c,b){if(c.originalEvent.touches.length>1){return}c.preventDefault();var a=c.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,true,true,window,1,a.screenX,a.screenY,a.clientX,a.clientY,false,false,false,false,0,null);c.target.dispatchEvent(d)}j._touchStart=function(a){var b=this;if(g||!b._mouseCapture(a.originalEvent.changedTouches[0])){return}g=true;b._touchMoved=false;i(a,"mouseover");i(a,"mousemove");i(a,"mousedown")};j._touchMove=function(a){if(!g){return}this._touchMoved=true;i(a,"mousemove")};j._touchEnd=function(a){if(!g){return}i(a,"mouseup");i(a,"mouseout");if(!this._touchMoved){i(a,"click")}g=false};j._mouseInit=function(){var a=this;a.element.bind("touchstart",f.proxy(a,"_touchStart")).bind("touchmove",f.proxy(a,"_touchMove")).bind("touchend",f.proxy(a,"_touchEnd"));h.call(a)}})(jQuery);
?>