I have this simple code:
document.addEventListener('touchmove', onDocumentTouchMove, false);
function onDocumentTouchMove(event)
{
for(var i = 0; i < event.touches.length; i++)
{
clickX[i] = event.touches[i].pageX;
clickY[i] = event.touches[i].pageY;
}
}
What I'm trying to do is make the event 'touchmove' to fire right away, but it requires a specific amount of pixels to pass, like a threshold before it fires.
In my case, it seems like I must move my finger about half an inch before it fires. Is there a way of making it fire without having a threshold?
I'm trying to drag a simple box in my app, but it seems like it is checking for different events before it recognizes the 'touchmove' and makes it look ugly because of the delay.
This is a distance issue, not a time one.