vxajja
Last Updated: February 25, 2016
·
8.512K
· Stereobit

Disable overscroll on iPad web app

To produce an app like feeling in the browser it's sometimes necessary to deactivate the native scrolling. To prevent even the overscroll effect just observe the touchmove event on the body and stop the default behavior.

 document.body.addEventListener('touchmove',function(event){
  event.preventDefault();
});