ensureAddIntersectionObserver method

void ensureAddIntersectionObserver()

Implementation

void ensureAddIntersectionObserver() {
  if (_intersectionObserverList.isEmpty) {
    return;
  }
  if (enableWebFCommandLog) {
    domLogger.fine('[IntersectionObserver] ensureAttach target=$pointer observers=${_intersectionObserverList.length}');
  }
  renderStyle.addIntersectionChangeListener(_handleIntersectionObserver, _thresholds);
}