@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.
@@ -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,13 @@ 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);
9523
- domDoc.defaultView?.scrollTo(0, 0);
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
+ }
9527
+ await this.wait(3000);
9524
9528
  },
9525
9529
  ignoreElements: (element) => {
9526
9530
  // Skip cross-origin images that might cause issues