loktar00 / react-lazy-load

React component that renders children elements when they enter the viewport.
MIT License
979 stars 166 forks source link

Allow users to pass a custom "scrollElement" #102

Closed zzarcon closed 7 years ago

zzarcon commented 7 years ago

This PR introduces a new property scrollElement, which will let LazyLoad know about which element the user wants to listen for scroll events.

Some benefits of this: