@c8y/ngx-components 1018.0.273 → 1018.0.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24774,7 +24774,7 @@ class DashboardChildComponent {
24774
24774
  setTimeout(() => this.setDynamicDimension());
24775
24775
  }
24776
24776
  if (this.useIntersection && 'IntersectionObserver' in window) {
24777
- const intersectionObserver = new IntersectionObserver(event => (this.intersected = this.childInView(event[0], intersectionObserver)));
24777
+ const intersectionObserver = new IntersectionObserver(events => (this.intersected = this.childInView(events, intersectionObserver)));
24778
24778
  intersectionObserver.observe(this.element.nativeElement);
24779
24779
  }
24780
24780
  else {
@@ -24847,9 +24847,10 @@ class DashboardChildComponent {
24847
24847
  getOrder() {
24848
24848
  return `${Math.round((this.y + (this.x + 1) / 100) * 100)}`;
24849
24849
  }
24850
- childInView(event, observer) {
24851
- if (event.isIntersecting) {
24852
- observer.unobserve(event.target);
24850
+ childInView(events, observer) {
24851
+ const intersectingEvent = events.find(event => event.isIntersecting);
24852
+ if (intersectingEvent) {
24853
+ observer.unobserve(intersectingEvent.target);
24853
24854
  return true;
24854
24855
  }
24855
24856
  return false;