I had a hard time figuring out why my lazy components were not visible/triggered on scroll when scrollContainer & overflow are defined. I found that overflow make scrollContainer logic not used at all.
I suggest that if scrollContainer is defined, it bypasses overflow option. Because scrollContainer is more precise in finding the scroll element/parent.
I had a hard time figuring out why my lazy components were not visible/triggered on scroll when
scrollContainer
&overflow
are defined. I found thatoverflow
makescrollContainer
logic not used at all.I suggest that if
scrollContainer
is defined, it bypassesoverflow
option. BecausescrollContainer
is more precise in finding the scroll element/parent.