@uxbertlabs/reportly 1.0.11 → 1.0.13

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
@@ -9513,9 +9513,15 @@ var Reportly = (function () {
9513
9513
  logging: false,
9514
9514
  width: fullPageWidth,
9515
9515
  height: fullPageHeight,
9516
- onclone: async () => {
9516
+ onclone: async (domDoc) => {
9517
9517
  // Wait 1 second after cloning to let animations complete
9518
9518
  await this.wait(1000);
9519
+ // scroll over the dome from top to bottom
9520
+ domDoc.defaultView?.scrollTo(0, 0);
9521
+ await this.wait(500);
9522
+ domDoc.defaultView?.scrollTo(0, fullPageHeight);
9523
+ await this.wait(500);
9524
+ domDoc.defaultView?.scrollTo(0, 0);
9519
9525
  },
9520
9526
  ignoreElements: (element) => {
9521
9527
  // Skip cross-origin images that might cause issues