function onTouchStart(oEvent) {
				if (oEvent.touches) {
					var currentTouches = oEvent.touches.length;

					if (currentTouches > maxFingersAllowed) {
						document.removeEventListener('touchend', onTouchEnd);
						return;
					}

					switch (currentTouches) {

						case holdFingersNumber:
							startTime = Date.now();
							document.addEventListener('touchend', onTouchEnd);
							break;

						case maxFingersAllowed:
							if (startTime) {
								timeDiff = Date.now() - startTime;
								lastTouchUID = oEvent.touches[currentTouches - 1].identifier;
							}
							break;
					}
				}
			}
//function is triggered when a touch is detected
function is triggered when a touch is detected
function is triggered when a touch is detected
function onTouchStart(oEvent) {
				if (oEvent.touches) {
					var currentTouches = oEvent.touches.length;
					if (currentTouches > maxFingersAllowed) {
						document.removeEventListener('touchend', onTouchEnd);
						return;
					}
					switch (currentTouches) {
						case holdFingersNumber:
							startTime = Date.now();
							document.addEventListener('touchend', onTouchEnd);
							break;
						case maxFingersAllowed:
							if (startTime) {
								timeDiff = Date.now() - startTime;
								lastTouchUID = oEvent.touches[currentTouches - 1].identifier;
							}
							break;
					}
				}
			}
function onTouchStart ( oEvent ) { if ( oEvent . touches ) { var currentTouches = oEvent . touches . length ; if ( currentTouches > maxFingersAllowed ) { document . removeEventListener ( 'touchend' , onTouchEnd ) ; return ; } switch ( currentTouches ) { case holdFingersNumber : startTime = Date . now ( ) ; document . addEventListener ( 'touchend' , onTouchEnd ) ; break ; case maxFingersAllowed : if ( startTime ) { timeDiff = Date . now ( ) - startTime ; lastTouchUID = oEvent . touches [ currentTouches - 1 ] . identifier ; } break ; } } }
function is triggered when a touch is detected
function is triggered when a touch is detected