@uxbertlabs/reportly 1.0.12 → 1.0.14

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.
package/dist/reportly.js CHANGED
@@ -9519,9 +9519,13 @@ var Reportly = (function () {
9519
9519
  // scroll over the dome from top to bottom
9520
9520
  domDoc.defaultView?.scrollTo(0, 0);
9521
9521
  await this.wait(500);
9522
- domDoc.defaultView?.scrollTo(0, fullPageHeight);
9523
- await this.wait(500);
9524
- domDoc.defaultView?.scrollTo(0, 0);
9522
+ // Smooth scroll to bottom
9523
+ const scrollStep = 100;
9524
+ for (let scrollY = 0; scrollY < fullPageHeight; scrollY += scrollStep) {
9525
+ domDoc.defaultView?.scrollTo(0, scrollY);
9526
+ await this.wait(100);
9527
+ }
9528
+ await this.wait(3000);
9525
9529
  },
9526
9530
  ignoreElements: (element) => {
9527
9531
  // Skip cross-origin images that might cause issues