vxajja
Last Updated: February 25, 2016
·
7.762K
· Stereobit
26bf316adf9d6df49b6d697ca0f31d37

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();
});
Say Thanks
Respond