Fix for iOS 5 elastic scrolling issue in block elements with "-webkit-overflow-scroll: touch;".View the demo on an iOS 5 device to see the elastic scroll work. Has no affect on any other devices/browsers.
JavaScript 100.00%
elastfix's Introduction
# Elastfix
A small jQuery plugin to help fix the iOS 5 elastic scrolling issue when you prevent touchmove on the html body, but want to allow the CSS property "-webkit-overflow-scroll: touch;" to work correctly.
For more info about this, follow @missingdesign on twitter. Find me on Forrst.com as @_jordan.
## Alternative
After I created this I stumbled on something by @joelambert, that's just straight js, and seems to work just as good. I'm not sure if it works with dynamically added content, but should be easy to alter if not, see: https://github.com/joelambert/ScrollFix
The "touchmove" event can get through to the body if you try to scroll quickly over and over before the elastic has fully retracted. This is confirmed on iOS 5, iPod touch. Doesn't happen on iPad.