@uxbertlabs/reportly 1.0.13 → 1.0.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAKzC,OAAO,CAAC,IAAI;IAGN,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IA8H1E,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,kBAAkB;IAY1B,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGd;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAKzC,OAAO,CAAC,IAAI;IAGN,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAmI1E,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,kBAAkB;IAY1B,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGd;AAED,eAAe,UAAU,CAAC"}
@@ -9518,9 +9518,14 @@ class Screenshot {
9518
9518
  // scroll over the dome from top to bottom
9519
9519
  domDoc.defaultView?.scrollTo(0, 0);
9520
9520
  await this.wait(500);
9521
- domDoc.defaultView?.scrollTo(0, fullPageHeight);
9522
- await this.wait(500);
9521
+ // Smooth scroll to bottom
9522
+ const scrollStep = 100;
9523
+ for (let scrollY = 0; scrollY < fullPageHeight; scrollY += scrollStep) {
9524
+ domDoc.defaultView?.scrollTo(0, scrollY);
9525
+ await this.wait(100);
9526
+ }
9523
9527
  domDoc.defaultView?.scrollTo(0, 0);
9528
+ await this.wait(3000);
9524
9529
  },
9525
9530
  ignoreElements: (element) => {
9526
9531
  // Skip cross-origin images that might cause issues