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

displayBottomUpwards doesn't scroll as expected

Open SmboBeast opened this issue 7 years ago • 1 comments

Hi,

I'm using the displayBottomUpwards property for chat purposes, but I've noticed a bug.

Upon 1st time rendering, the scrollTop of the container is essentially equal to the scrollHeight. That is, the scrollbar is at entirely at the bottom of the container. This is perfect.

However, as you scroll up and up and get to the top, on the next load, the scrollbar seems to act just like the above scenario. This is not expected.

Now, if you scroll up and up again and initiate a third infiniteLoad, this time, everything acts as planned. The items are loaded above the last scroll point, and the user continues where they left off.

Any idea of what's going on?

SmboBeast avatar Jul 03 '17 05:07 SmboBeast

@SmboBeast Any luck on finding out what this is? I think I'm getting the same thing. I think if you scroll close to the beginning of a batch, you mess up the scroll. I've tried to avoid this by making infiniteLoadBeginEdgeOffset very large.

yiziz avatar Feb 02 '18 03:02 yiziz