react-infinite-scroll-component icon indicating copy to clipboard operation
react-infinite-scroll-component copied to clipboard

call onScroll event on failed attempt to scroll down

Open rahulakrishna opened this issue 2 years ago • 2 comments

Changes

  • Add a listener on wheel events
  • detect the wheel direction and for cases with no scroll bar, call the onScroll event

How to Test

src/stories/WindowInfiniteScrollComponent.tsx, change the Array length to a lower number. image

Resolves: loader doesn't appear when page is bigger than InfiniteScroll #345

rahulakrishna avatar Aug 04 '22 07:08 rahulakrishna

@ankeetmaini can we merge this?

rahulakrishna avatar Nov 14 '22 13:11 rahulakrishna

+1 encountering this issue as well and this would be a welcome fix

pablomikel avatar Feb 28 '23 21:02 pablomikel