handleIntersectionChange method
void
handleIntersectionChange(
- IntersectionObserverEntry entry
inherited
Implementation
void handleIntersectionChange(IntersectionObserverEntry entry) {
dispatchEvent(IntersectionChangeEvent(entry.intersectionRatio));
if (entry.intersectionRatio > 0) {
handleAppear();
} else {
handleDisappear();
}
}