civiccc / react-waypoint

A React component to execute a function whenever you scroll to an element.
MIT License
4.08k stars 208 forks source link

Waypoint causing gap between fetched element count #361

Closed rosman83 closed 2 years ago

rosman83 commented 2 years ago

This plugin is working fine but on fetch it leaves a padding like gap between the last fetched items and the next set in a vertical list. This makes lists look really weird and spaced oddly as one element is spaced much more than the others at the waypoint

trotzig commented 2 years ago

Hi @rosman83! By default, the waypoint is rendered as a <span> element. As long as you keep that element outside of the list, it shouldn't affect styling.