Jump to content

Stop iPad bounce but allow a <div> scrolling


jandrews3

Recommended Posts

I have found a way to stop the bounce but it also stops  <div> from scrolling which I must have.

 

I've got the following code inside the <head> element:

 

<script>
document.addEventListener("touchmove", function(event){
    event.preventDefault();
});
</script>
 

The page doesn't bounce and I absolutely LOVE it! BUT I must have a div on the page to scroll. It contains skill data for my students which needs to scroll for them to see it all. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/285849-stop-ipad-bounce-but-allow-a-scrolling/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.