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

when useWindow is false,offset calculate wrong

Open xu-snow opened this issue 7 years ago • 1 comments

In L152

offset =
        el.scrollHeight - el.parentNode.scrollTop - el.parentNode.clientHeight;

if el has brother node before it,the offset may calculated less than actuality,i think it should add el.offsetTop,like:

 offset =
        el.scrollHeight +el.offsetTop - el.parentNode.scrollTop - el.parentNode.clientHeight;

xu-snow avatar Feb 03 '18 08:02 xu-snow

I recently updated the issue templates on this repo so that I can identify the bugs with this repo.

Please clone your layout and use of react-infinite-scroller by forking this Code Sandbox and linking it here. Doing so will massively expedite getting the bug fixed! 👊

danbovey avatar May 14 '18 18:05 danbovey