There's a lot of snippets to stop the rubber-banding on iPad, like the one below:
document.body.addEventListener('touchmove',function(event){ event.preventDefault(); },false);
However this has the unwanted effect of preventing all divs with overflows on them from scrolling too?
Is there a way to just top the page (body) from rubber-banding while still allowing the overflowed-scrolled divs to do so?
The rubber-banding of the entire page seems to happen when the user is scrolling from the very bottom or very top of a div. The code I've written checks to see if the user is indeed at one of those extremes and if so prevents the scrolling action from happening in those directions.
Update: including the working jsfiddle demo link: http://jsfiddle.net/qQHrM/1/