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

issues calling next fn on scroll to top action

Open francisBae opened this issue 3 years ago • 3 comments

Hello, I'm having some issues using react-infinite-scroll-component. according to the document, next function is 'a function which must be called after reaching the bottom'. In my case, when I mouse scroll an reach the top, it still calls the next function. I saw some code examples on codesandbox but couldn't find difference.

  • is it related to the css styles? does anybody have the same issue?

francisBae avatar May 11 '22 14:05 francisBae

Yes, I have same issue, inverse={false} is not working. When I scroll mouse to the top it calls my service again. Does anybody here to help us?

muhammetakgun avatar May 12 '22 08:05 muhammetakgun

Please watch this video for this library https://youtu.be/c0nKjMnDfG4

subu873 avatar May 30 '22 11:05 subu873

I wrote an answer on stackoverflow. If there's a better solution please let me know.

https://stackoverflow.com/questions/73280173/how-to-avoid-scrollbar-staying-on-top-when-loading-more-data-infinite-scroll-i/74484560#74484560

sanchitos avatar Nov 18 '22 03:11 sanchitos