Skip to content

Commit ec07c93

Browse files
committed
README
1 parent cc11fe4 commit ec07c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const callback = (entries: IntersectionObserverEntry[], observer: PositionObserv
4242
// Access the observer inside your callback
4343
// const otherEntry = observer.getEntry(anyOtherTarget);
4444
entries.forEach((entry) => {
45-
if (entry?.target === myTarget /* and your own conditions apply */) {
45+
if (entry.isIntersecting/* and your own conditions apply */) {
4646
// Handle position changes
4747
console.log(entry.boundingClientRect);
4848
}

0 commit comments

Comments
 (0)