Is it possible to prevent a scroll event in jQuery?
I tried this code but it did not work.
$('*').scroll(function(event){ event.stopPropagation(); event.preventDefault(); return false; })
ok .. i was working with the wrong event. touchmove was exactly what I was looking for. So
$('body').bind('touchmove', function(e){ e.preventDefault(); });
You can disable scrolling in certain areas of an element using the following:
$("element,element2").bind("touchmove",function(e){ e.preventDefault(); });
Just set body CSS to disable scrolling.
body
body { overflow: hidden; }