Open kunalns opened 6 years ago
Wrote a comment here https://github.com/fkhadra/react-on-screen/issues/27 on how i think this could be solved
@fkhadra Any update or action planned on this? It seems to be a pretty common use case
For the moment, a simple (but probably not performant) way to solve it is to forward the scroll event to the window :
const event = new Event('scroll');
scrollingDiv.addEventListener('scroll', () => window.dispatchEvent(event));
Due to some the scroll is not on document in my app, it's on a element and because of this visibility is not setting true of it's child elements.