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();
});
Written by Tobias Otte
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mobile
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#