Your IP : 3.145.112.91


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/mobileapp/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/mobileapp/gesture.min.js

(function(){BX.namespace("BX.MobileApp");BX.MobileApp.Gesture={addLongTapListener(e,t,a){var n=a||500;var c;var o=false;function i(e,t){c=setTimeout((()=>{l(t)}),e)}var u={x:0,y:0};function r(e){o=false;if(e.target.tagName==="A"){return}u={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};i(n,e.target)}function s(e){u={x:0,y:0};clearTimeout(c);if(o){e.preventDefault()}}function d(e){var t=e.changedTouches[0].clientX;var a=e.changedTouches[0].clientY;if(Math.abs(u.x-t)>5||Math.abs(u.y-a)>5){u={x:0,y:0};clearTimeout(c)}}function l(e){clearTimeout(c);o=true;if(t){t(e)}}BX.addClass(e,"long-tap-block");e.addEventListener("touchstart",r);e.addEventListener("touchend",s);e.addEventListener("touchmove",d);BX.addCustomEvent("onNativeTouchEnd",(()=>{clearTimeout(c)}))}}})();
//# sourceMappingURL=gesture.map.js