I\'m trying out phone gap and I want my application to not scroll up and down when the user drags their finger across the screen. This is my code. Can anyone tell me why it\
Run this code when the page is loaded to disable dragging:
document.addEventListener('touchmove', function(e) { e.preventDefault(); }, false);
Here's an example with jQuery:
$(document).ready(function() { document.addEventListener('touchmove', function(e) { e.preventDefault(); }, false); });