INNER CODE UNIT · JavaScript
processSpectorTouchGestureAsync
NeoAxis/NeoAxisEngine · Project/Sources/NeoAxis.Player.Web/wwwroot/main.js:144
const processSpectorTouchGestureAsync = async (touchCount) =>
{
if (!allowSpector)
return false;
if (touchCount !== 3 && touchCount !== 4)
return false;
const now = performance.now();
const isDoubleTap =
lastSpectorTouchGestureFingers === touchCount &&
now - lastSpectorTouchGestureTime <= SPECTOR_TOUCH_GESTURE_INTERVAL;
lastSpectorTouchGestureTime = now;
lastSpectorTouchGestureFingers = touchCount;
if (!isDoubleTap)
return false;