user979799
user979799

Reputation: 53

How to prevent ngInfiniteScroll from being triggered when scrolling up

I am trying to implement ngInfiniteScroll and it works fine when I am scrolling down. But, I want to prevent it from triggering when I scroll up when scroll position is near the bottom. Any help ?

Upvotes: 0

Views: 395

Answers (1)

Praveen Poonia
Praveen Poonia

Reputation: 765

set some object like isScrollUp=true when somebody scroll up and place that object in infinite-scroll-disabled='isScrollUp'

Upvotes: 1

Related Questions