I'm trying to get constant coordinates of where my touch is, unfortunately when I run application I noticed there is a pixel threshold or something that needs to be surpassed before 'touchmove' is activated. Is there a way to change this threshold? Or maybe something else? (Preferably not using JQuery please)
What happens:
Touch = instant X,Y coordinates
Move Touch around = X,Y coordinates don't change until "certain amount of pixels passed" (threshold?)
document.addEventListener('touchstart', onDocumentTouchStart, false);
document.addEventListener('touchmove', onDocumentTouchMove, false);
function onDocumentTouchStart(event)
{
for(var i = 0; i < event.touches.length; i++)
{
clickX[i] = event.touches[i].pageX;
clickY[i] = event.touches[i].pageY;
}
}
function onDocumentTouchMove(event)
{
for(var i = 0; i < event.touches.length; i++)
{
clickX[i] = event.touches[i].pageX;
clickY[i] = event.touches[i].pageY;
}
}