|
|
@@ -127,7 +127,7 @@
|
|
|
dispatchEvent(new UIEvent("scroll"));
|
|
|
const docBoundingRect = scrollingElement.getBoundingClientRect();
|
|
|
Array.from(observers, ([intersectionObserver, observer]) => {
|
|
|
- const rootBoundingRect = observer.options.root && observer.options.root.getBoundingClientRect();
|
|
|
+ const rootBoundingRect = observer.options && observer.options.root && observer.options.root.getBoundingClientRect();
|
|
|
observer.callback(observedElements.get(intersectionObserver).map(target => {
|
|
|
const boundingClientRect = target.getBoundingClientRect();
|
|
|
const isIntersecting = true;
|