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

Fix: scrollThreshold is not properly applied in inverse mode

Open oscar60310 opened this issue 2 years ago • 2 comments

What's happened

In inverse mode, scrollThreshold was not properly applied, so we needed to scroll to the end to trigger next function calls.

https://user-images.githubusercontent.com/9553914/235976870-9968c5a3-fb5b-4389-a94f-f5262112b47d.mp4

Solution

We should multiply it with scrollHeight as we did in normal mode.

https://user-images.githubusercontent.com/9553914/235977695-6dbf2c8e-d547-4b19-ae20-091f637be5c6.mp4

oscar60310 avatar May 03 '23 16:05 oscar60310

@oscar60310 Any update on this?

BaDo2001 avatar Jun 28 '23 07:06 BaDo2001

Hi, the fix should work, but the project seems to be inactive. Therefore, I have duplicated the code into our project instead.

oscar60310 avatar Jun 28 '23 10:06 oscar60310