react-lazyload
react-lazyload copied to clipboard
Attach to both the window and the parent if overvlow parent is present
Proposal to fix #172
NB: Breaks the test checking for rendering only once since it attaches to both parent and window scroll: https://github.com/jasonslyvia/react-lazyload/blob/552315242635d0bf36c5387d644e6eded6641ce6/test/specs/lazyload.spec.js#L74
Coverage remained the same at 75.904% when pulling fe76110e18208831167ec6e77a3151888f27ee96 on ninio:master into 552315242635d0bf36c5387d644e6eded6641ce6 on jasonslyvia:master.
Seems reasonable, care to fix the tests by the way?
Yep, I will try to fix them. It might take me some time since I don't fully understand them.
Turns out I was not handling unsubscribing of the window scroll which was why the tests failed.
Any chance we can get this committed with a new version pushed out? 😄
@jasonslyvia?
Hey, @jasonslyvia
Is there anything else I can help you with regarding this issue? Maybe a short description of the fix?
Best, Ninio
Hey @imjoshdean-tc I will review your PR soon.
When is "soon?" It's been almost three weeks...
hey @imjoshdean-tc sorry for the inconvenience. Within this weekend I will pass it throw, I appreciate your patience!