4_dt8w
Last Updated: February 25, 2016
·
4.656K
· wjonthomas

Allow native-feeling scroll in iOS webkit for absolutely positioned containers

I had an absolutely positioned container with overflow: scroll enabled. But, scrolling didn't have that iOS inertia or bounce. Turns out you can just add this bit of css to the element you are scrolling to allow it to have that iOS feeling when scrolling:

overflow: scroll;
-webkit-overflow-scrolling: touch;

Cheers.

2 Responses
Add your response

4532

You saved my day John, I was looking for exactly this.

over 1 year ago ·
4538

@mauryaratan Good! It was a life saver for me too. I'm glad it helped.

over 1 year ago ·