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.
Written by Jon Thomas
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#