Iscroll - Infinite - with random cell sizes

时间:2015-06-26 10:06:26

标签: web-applications infinite-scroll iscroll

Hi there I know that's not neccessarily the functionality of the Iscroll-Infinite as it seem to be only scrolling the cells of equal sizes. Maybe any of you already resolved the issue I am having - basically I need it to work with different cell sizes not just set size. Whilst the library works perfect with set size cell the random sizing proves difficult to implement.

I'm not too hooked on the iscroll anyway - if anyone of you know of a good Angular extension that works the same or point me in the right direction on how to achieve it with something else. then I'd very much appreciate the help.

1 个答案:

答案 0 :(得分:0)

好的,所以上面的答案是 - 它绝对可能但不使用iscroll-infinite(至少目前),但你自己的解决方案是iscroll。在滚动事件中,有两个属性可用,您可以在滚动时主动更改并实现永无止境的滚动效果(IScroll.scrollerHeight和IScroll.maxScrollY)保持初始scrollerHeight并不断更新maxScrollY与您在结束时重新使用的每个单元格饲料。这也需要一些缓存/服务器通信来实现完整的“无限滚动”功能。

我可以确认这绝对有效。