adobe / helix-rum-enhancer

Add advanced functionality to Helix RUM Collection (client-side)
Apache License 2.0
1 stars 14 forks source link

IntersectionObserver is not always triggered #224

Closed kptdobe closed 1 month ago

kptdobe commented 3 months ago

viewblock checkpoint fired when the IntersectionObserver on the block div "intersects". Problem is that in some cases, it is not the case and the checkpoint is missing.

Test page: https://www.bulk.com/nl/products/creatine-monohydrate/bpb-cmon-0000?rum=on on mobile.

The product-details checkpoint is triggered only because we manually patched the product-details block to observe some internal div of the block (search for sampleRUM in block code).

My initial analysis:

  1. the block is huge (4000px height)
  2. we intersect at 25%, i.e. when scrolling down, it should trigger but it is not the case
  3. the block contains a lot of relative positioned divs which seems to confuse the browser logic or requires css adjustments - could not find them yet.
adobe-bot commented 1 month ago

:tada: This issue has been resolved in version 2.19.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: