samvermette / SVPullToRefresh

Give pull-to-refresh & infinite scrolling to any UIScrollView with 1 line of code.
http://samvermette.com/314
MIT License
4.82k stars 1.09k forks source link

Fix Pull to Refresh activates Infinite Scrolling #245

Closed esttorhe closed 8 years ago

esttorhe commented 9 years ago

Fix #119

Done

By checking if the content offset is greater than 0 we avoid triggering the infinite scrolling when doing the pull to refresh with small samples of data.


http://i.giphy.com/yWnUyR27w6vvi.gif

LawrenceHan commented 8 years ago

Hi I merged #260 code to https://github.com/LawrenceHan/SVPullToRefresh Because it make more sense to me. It will solve your problem. Let me know if it's not working in your project.

esttorhe commented 8 years ago

That's ok; if it makes more sense to you 💯 I'll close this PR now