metafizzy / infinite-scroll

📜 Automatically add next page
https://infinite-scroll.com
7.41k stars 1.74k forks source link

scroll not working properly. - Loading data on top scroll and without reaching bottom #635

Closed bhumitra closed 7 years ago

bhumitra commented 9 years ago

I am not able to get the examples to work also.

This is not working!

Loading data on top scroll and without reaching bottom

Does anyone have a proper working example with code?

Amerr commented 9 years ago

+1

astrocean commented 9 years ago

example : http://h5china.cn/joke/index.jsp

Amerr commented 9 years ago

@loveMrStar is there any example load messages . on scroll top. Scrolling from bottom to top to read all message.

astrocean commented 9 years ago

@Amerr Do you mean pull up and then load the message?

Amerr commented 9 years ago

yes @loveMrStar . like slack does

astrocean commented 9 years ago

@Amerr Here's an example: the drop - up and pull - up of iScroll 5 is more load - up - but there is no such unlimited scrolling. http://amazeui.org/examples/iscroll.html

astrocean commented 9 years ago

@Amerr If you want iscroll and unlimited scrolling, you can do this: (1) when the drop is refreshed â‘ Empty the container for a message list //... â‘¡Update method to reset unlimited scrolling plugin $(selector).Infinitescroll ('update', {state: {currPage: 0, isDone: false}); â‘¢Use the retrieve method to load the next page automatically $(selector).Infinitescroll ('retrieve'); â‘£If before the called pause method also need to call the resume method to infinite rolling recovery $(selector).Infinitescroll ('resume'); (2) when the load is loaded â‘ Use the retrieve method to load the next page automatically $(selector).Infinitescroll ('retrieve'); $(selector).Infinitescroll ('resume'); â‘¡When loading the page, the method is called to call the pause method in the unlimited scrolling plug-in. $(selector).Infinitescroll ('pause');

desandro commented 7 years ago

Infinite Scroll does not support bottom-up loading or scrolling. I'm closing this issue as its been quiet for a while. Please open a new issue if you would still like to see this feature.


Infinite Scroll v3 is out!. It's an all new re-write, so take a look at how to upgrade from v2.