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

State will be triggered all the time, and not to be loading #301

Open sou1x0 opened 7 years ago

sou1x0 commented 7 years ago

Because infinite scrolling view's height is 60pt, user can scroll to the mid of the infinite scroll view. In this situation, state is triggered all the time and not to be loading, even if user leave his finger from the screen. I think the reason is that when the last scrollViewDidScroll is triggered, isDragging is still true, not false. Then when user leaves his finger, scrollViewDidScroll will not be called.