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

2 way scroll

Open rossifumi46 opened this issue 3 years ago • 7 comments

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.

rossifumi46 avatar Jun 16 '22 11:06 rossifumi46

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

dani-ras avatar Jul 13 '22 05:07 dani-ras

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.

ankeetmaini avatar Jul 13 '22 06:07 ankeetmaini

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)?

dani-ras avatar Jul 13 '22 07:07 dani-ras

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

Xsx93 avatar Jul 19 '22 13:07 Xsx93

Anyone find answer?

Bravemobin avatar Jan 09 '23 08:01 Bravemobin

I also need this - any updates?

MatinF avatar Jan 17 '23 11:01 MatinF

any updates?

avivdaniel avatar Feb 15 '23 09:02 avivdaniel