react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
2 way scroll
How can I use 2 way scroll ? I need to load list from middle. And then load prev and next content depending on scroll direction.
I've searched around in the issues here, and from what i found it was a feature requested and actually said to be added , as of v5.10 Is it possible to use react-infinite-scroll-component for scrolling UP? #57)
But, I still dont understand how to use it...
when setting inverse=true, it doesnt trigger the next function for scrolling up, and actually cancels the trigger for scroll down..
help would be appreciated, thanks
It was added and I can see its usage here https://github.com/ankeetmaini/react-infinite-scroll-component/blob/d5b4e5250669022db5217763afd22fb3995a505a/src/index.tsx#L316, not sure why it’s not working.
On 13-Jul-2022, at 11:12 AM, Daniel Rashi @.***> wrote:
I've searched around in the issues here, and from what i found it was a feature requested and actually said to be added , as of v5.10 Is it possible to use react-infinite-scroll-component for scrolling UP? #57 https://github.com/ankeetmaini/react-infinite-scroll-component/issues/57#:~:text=This%20feature%20has%20landed%20in%20the%20latest%20version%20%3A)
But, I still dont understand how to use it...
when setting inverse=true, it doesnt trigger the next function for scrolling up, and actually cancels the trigger for scroll down..
help would be appreciated, thanks
— Reply to this email directly, view it on GitHub https://github.com/ankeetmaini/react-infinite-scroll-component/issues/343#issuecomment-1182789285, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSYHFYWMHGDHQ27F3NC4WTVTZJMNANCNFSM5Y6ORYXA. You are receiving this because you are subscribed to this thread.
thanks for the reply, correct me if im wrong, but this seems to allow only one direction scroll, default - scrolldown, or with given inverse option, reverse - scrollup
is it possible to trigger next function on both directions (with data of which direction)?
thanks for the reply, correct me if im wrong, but this seems to allow only one direction scroll, default - scrolldown, or with given inverse option, reverse - scrollup
is it possible to trigger next function on both directions (with data of which direction)?
I am looking for the same code
Anyone find answer?
I also need this - any updates?
any updates?