Yes, I know. This question has been asked a thousand times before. Thanks to all you guys, I was able to find a solution that finally did the job for me in <= iOS7. However,
This, combined with the fact that position: fixed gets respected more reliably, allows for some interesting effects. You could do a pull to refresh with a simple fixed 'underlay' that stays put while body is pulled down, thus revealing it.
To answer your question:
A touchmove handler that throws away ( event.preventDefault() ) the event if the following conditions are met should work:
target element and body are at scrollTop == 0scrollTop + innerHeigh == scrollHeight)Please let me know if you're looking for a more detailled axplantion, happy to write it up.