Skip to content Skip to sidebar Skip to footer

Touchmove Event On Mobile Safari - Causes The Whole Page To Be Dragged

when applying touch events as per apple documentation element.addEventListener('touchstart', touchStart, false); element.addEventListener('touchmove', touchMove, false); element.ad

Solution 1:

You can try to use preventing default action with returning false from a handler.

event.preventDefault();
return false;

Also you can try to use event.stopPropagation();

I think one of that should work


Post a Comment for "Touchmove Event On Mobile Safari - Causes The Whole Page To Be Dragged"