fix: add scrollMargin property since the IntersectionObserver has it
This commit is contained in:
@@ -20,6 +20,7 @@ let mockObserverInstances: MockIntersectionObserver[] = [];
|
|||||||
class MockIntersectionObserver implements IntersectionObserver {
|
class MockIntersectionObserver implements IntersectionObserver {
|
||||||
root = null;
|
root = null;
|
||||||
rootMargin = '';
|
rootMargin = '';
|
||||||
|
scrollMargin = '';
|
||||||
thresholds: number[] = [];
|
thresholds: number[] = [];
|
||||||
readonly callbacks: Array<(entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void> = [];
|
readonly callbacks: Array<(entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void> = [];
|
||||||
readonly observedElements = new Set<Element>();
|
readonly observedElements = new Set<Element>();
|
||||||
|
|||||||
Reference in New Issue
Block a user