1

I am trying to disable the rubber band effect on iOS when I make use of the -webkit-overflow-scrolling: touch;.

Does anyone know how to fix the rubber band in combination with the -webkit-overflow-scrolling: touch; snippet?

Demo code: http://codepen.io/Caspert/pen/BopMrj

Look out for some answer. Casper

Caspert
  • 4,271
  • 15
  • 59
  • 104
  • 1
    Possible duplicate of [iPhone Web App - Stop body scrolling](http://stackoverflow.com/questions/8488447/iphone-web-app-stop-body-scrolling) – balexandre Oct 01 '15 at 12:51

2 Answers2

2

The easiest way I found was to make the body position:fixed. Like so:

body
{
   position:fixed;
}

Any divs inside the body can then be made to scroll, by setting a height on them and using overflow:auto.

John Page
  • 357
  • 3
  • 5
0

set bounces={false} in scrollview