uawdijnntqw1x1x1
IP : 3.141.25.1
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
js
/
mobileapp
/
gesture.js
/
/
(function(){ BX.namespace("BX.MobileApp"); BX.MobileApp.Gesture = { addLongTapListener:function (node, callback, customDuration) { var touchDuration = customDuration|| 500; var timerInterval; var preventTouchEnd = false; function timer(interval, targetNode) { timerInterval = setTimeout(function(){ tapHold(targetNode); }, interval); } var startPosition = {x: 0, y: 0}; function touchStart(e) { preventTouchEnd = false; if (e.target.tagName === "A") { return; } startPosition = {x: e.changedTouches[0].clientX, y: e.changedTouches[0].clientY}; timer(touchDuration, e.target); } function touchEnd(e) { startPosition = {x: 0, y: 0}; clearTimeout(timerInterval); if (preventTouchEnd) { e.preventDefault(); } } function touchMove(e) { var x = e.changedTouches[0].clientX; var y = e.changedTouches[0].clientY; if (Math.abs(startPosition.x - x) > 5 || Math.abs(startPosition.y - y) > 5) { startPosition = {x: 0, y: 0}; clearTimeout(timerInterval); } } function tapHold(targetNode) { clearTimeout(timerInterval); preventTouchEnd = true; if (callback) { callback(targetNode); } } BX.addClass(node, "long-tap-block"); node.addEventListener('touchstart', touchStart); node.addEventListener('touchend', touchEnd); node.addEventListener('touchmove', touchMove); BX.addCustomEvent("onNativeTouchEnd", function(){ clearTimeout(timerInterval); }) } }; })();
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/js/mobileapp/gesture.js