touchTimestamp=false;

function inizio() {
document.addEventListener("touchstart", function(e){
contextHolder.style.display="none";
touchTimestamp=true;
t=setTimeout(function(){checkHold(e.touches[0].screenX,e.touches[0].screenY);},1000);
}, false);
document.addEventListener("touchmove", resetContext, false);
document.addEventListener("touchend", resetContext, false);
}

function resetContext() {
touchTimestamp=false;
clearTimeout(t);
}

function checkHold(x,y) {
if (touchTimestamp) {
contextHolder.style.top=y+"px";
contextHolder.style.display="block";
contextHolder.style.left=(x-(contextHolder.offsetWidth/2))+"px";
}
}