react-lazy-load icon indicating copy to clipboard operation
react-lazy-load copied to clipboard

Allow passing a root prop to IntersectionObserver

Open santialbo opened this issue 2 years ago • 0 comments
trafficstars

If using this on elements inside a scrollable div, you need to pass the root prop in order for the offset to work correctly. Otherwise offset is "ignored" and elements are only "visible" when they are actually visibile.

We just need a new root prop of type Element that can be passed optionally to the IntersectionObserver constructor

santialbo avatar Oct 18 '23 09:10 santialbo