pronebird / UIScrollView-InfiniteScroll

UIScrollView ∞ scroll category
MIT License
1.06k stars 148 forks source link

the infiniteScrollTriggerOffset does not work #57

Closed theprojectabot closed 7 years ago

theprojectabot commented 7 years ago

From my tests seems that the infiniteScrollTriggerOffset does not function correctly. It is never triggered until I reach the bottom of the tableview. I have set it to different values (300, 400, 500) and it only triggers at the bottom.

pronebird commented 7 years ago

I'll double check that. The way it works is by adjusting the offset when to fire the block handler (which is when scroll reaches the bottom). I believe that logic should be hard to break as long as original algorithm works.

theprojectabot commented 7 years ago

I was doing it wrong.

theprojectabot commented 7 years ago

Its from the bottom , not top of tableview.

pronebird commented 7 years ago

Yes, it's relative to the bottom of table view. This way you set it once and you don't have to update it each time new content is being added to table view. I'll update documentation to clarify the behavior.