Last Updated: February 25, 2016
· 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;


2 Responses
Add your response

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

over 1 year ago ·

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

over 1 year ago ·