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

When inverse=true, the fast sliding sub component cannot be displayed normally

Open Noah-JJ opened this issue 3 years ago • 13 comments

WechatIMG1058

As you can see, the content above number 69 is not displayed.

Noah-JJ avatar Dec 09 '22 14:12 Noah-JJ

@ankeetmaini Facing the same issue. Also, observed that this is happening in newer version of chrome. (Version 108.0.5359.98 (Official Build) (x86_64))

chetan-zdev avatar Dec 15 '22 17:12 chetan-zdev

I have the same problem. It seems to only happen with Chrome. I've only tested it on Chrome and Safari so far.

cjambrosi avatar Dec 16 '22 10:12 cjambrosi

I have the same problem. I've only tested it on Chrome

ShareTheWorld avatar Dec 24 '22 05:12 ShareTheWorld

I've just encountered the issue with Chrome 108.0.5359.124

leejunhui avatar Dec 29 '22 08:12 leejunhui

I created my own Infinite Scroll component, using intersection observer from JS where this bug does not occur. I want to provide a repository with example.

cjambrosi avatar Dec 29 '22 13:12 cjambrosi

Same issue, any possible fixes.

https://user-images.githubusercontent.com/110843056/210102514-ae5eaf64-cae7-4635-a32f-139e1e2168db.mov

AmitEquipHealth avatar Dec 30 '22 18:12 AmitEquipHealth

I created my own Infinite Scroll component, using intersection observer from JS where this bug does not occur. I want to provide a repository with example.

Any links for reference to your implementation?

AmitEquipHealth avatar Jan 02 '23 12:01 AmitEquipHealth

I think its a bug with the browser rather than the component. flexDirection: 'column-inverse' causes issue with updated version of browsers.

for now the only fix that worked for me is setting css property on the items contentVisibility: 'auto'. This forces to render the element if not rendered already

Hope this helps.

AmitEquipHealth avatar Jan 06 '23 11:01 AmitEquipHealth

'contentVisibility:auto' did not fix this for me

gannkb77 avatar Jan 23 '23 20:01 gannkb77

https://codesandbox.io/s/nostalgic-wozniak-dpitnd?file=/src/index.js Here's an implementation where this occurs.

gannkb77 avatar Jan 23 '23 20:01 gannkb77

Maybe add contentVisibility: auto to each item. This works for me.

jingguangyan avatar Jul 21 '23 12:07 jingguangyan

contentVisibility is experimental, compatibility is not very good, please use with caution in production environment.

jingguangyan avatar Jul 30 '23 06:07 jingguangyan

https://stackoverflow.com/questions/74617048/chrome-wont-render-items-when-flex-direction-row-reverse-column-reverse-wit

jingguangyan avatar Aug 01 '23 11:08 jingguangyan