Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngInfiniteScroll fires when scroll up #360

Open
minhnhatspk opened this issue Apr 9, 2017 · 3 comments
Open

ngInfiniteScroll fires when scroll up #360

minhnhatspk opened this issue Apr 9, 2017 · 3 comments

Comments

@minhnhatspk
Copy link

help me please !

@BaltimoreBirds
Copy link

@minhnhatspk sounds like your containing scroll-area is too close to the bottom of the browser window, so it just automatically fires on any scroll event.

@mgm09a
Copy link

mgm09a commented Jun 11, 2018

Have you read the FAQ section titled "Why is ngInfiniteScroll triggering my expression on every single scroll event?"

The infiniteScroll directive uses the height of the element that it's attached to in order to determine how close to the bottom of the window it is. In some cases, the browser can report a height of 0, which causes this behavior. Usually, this is due to a container element that only contains floated children. The simplest way to fix this problem is to add a "spacer" element to the bottom of the container (something like <div style='clear: both;'></div>); see this StackOverflow question and its associated answers for more details.

Does this describe your situation?

@ranst91
Copy link

ranst91 commented Jun 24, 2018

For a list with a defined height (the browser gets the current height) that has also this issue, this FAQ answer won't do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants