sroze / ngInfiniteScroll

Infinite Scrolling for AngularJS
http://sroze.github.com/ngInfiniteScroll/
MIT License
2.89k stars 723 forks source link

Scrolling is not triggered when window is resized (enlarged) #139

Open kjetil72 opened 9 years ago

kjetil72 commented 9 years ago

Hi :-)

Scenario: I'm running on a Mac and my project is using Node.JS with Express and Jade, with the front-end running AngularJS with Foundation from Zurb. I use a Foundation Data Grid to display data. The data is loaded to page, infinite scroll handles perfectly when reaching bottom and triggers retrieval of new data. After page is filled up it stops, as expected.

The problem occurs when a window resize happens that extends the height beyond the bottom. This does not trigger a check where more elements are added. This is the same behaviour for Chrome, Firefox and Safari.

If there is a way to hangle this that I have overlooked, please enlighten me :-)

Regards, Kjetil

elado commented 9 years ago

:+1: same issue on page load with a scroll area bigger than content retrieved - the load more function should be called until there's scroll.

JobaDiniz commented 9 years ago

Hi, this is already discussed on https://github.com/sroze/ngInfiniteScroll/issues/125