I have disabled scrolling on the iPad using:
function disableScrolling() { document.ontouchmove = function(e){ e.preventDefault(); } }
This should work,
var disableScroll = false; function disableScrolling() { disableScroll = true; } function enableScrolling() { disableScroll = false; } document.ontouchmove = function(e){ if(disableScroll){ e.preventDefault(); } }