eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 252 forks source link

ScrollView is glitching #123

Open loringit opened 6 years ago

loringit commented 6 years ago

I have found very strange behavior of scrollview. When we do pull to refresh and stop function is called, scrollviews contentOffset.y is set to self.scrollViewInsets.top + self.previousOffset, which is very different in compression with previous value. This makes the scrollView to glitch. If delete self.scrollViewInsets.top , everything goes well. You can have a look at the code in ESPullToRefresh.swift file, 313 - 336 rows. Please have a look and explain why you do this. Thank you!