ankeetmaini / react-infinite-scroll-component

An awesome Infinite Scroll component in react.
https://react-infinite-scroll-component.netlify.com/
MIT License
2.88k stars 323 forks source link

When inverse scrolling, page content jumps to the top #366

Open Apestein opened 1 year ago

Apestein commented 1 year ago

When scrolling down, everything works as normal. Scroll div content will stay where it is and user to scroll down to see more loaded content. But with inverse, the page content jumps up to the top

tiagomnferreira commented 1 year ago

Started having the same issue recently, was working normally before

Apestein commented 1 year ago

If anyone having this problem, the solution is overflow-anchor: none

zhangwei900808 commented 1 year ago

@Apestein Perfect Thank you!

sudhanshuw360 commented 1 year ago

not working for me

Apestein commented 1 year ago

I ended up just making my own infinite scroll component. Check it out. https://github.com/Apestein/better-react-infinite-scroll

LucasJantschChitolina commented 4 months ago

I ended up just making my own infinite scroll component. Check it out. https://github.com/Apestein/better-react-infinite-scroll

Thank you so much. Your repo helped me a lot!