@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.
- package/dist/features/screenshot.d.ts.map +1 -1
- package/dist/reportly.cjs.js +7 -2
- package/dist/reportly.cjs.js.map +1 -1
- package/dist/reportly.esm.js +7 -2
- package/dist/reportly.esm.js.map +1 -1
- package/dist/reportly.js +7 -2
- package/dist/reportly.js.map +1 -1
- package/dist/reportly.min.js +1 -1
- package/dist/reportly.min.js.map +1 -1
- package/package.json +1 -1
package/dist/reportly.esm.js
CHANGED
@@ -9516,9 +9516,14 @@ class Screenshot {
|
|
9516
9516
|
// scroll over the dome from top to bottom
|
9517
9517
|
domDoc.defaultView?.scrollTo(0, 0);
|
9518
9518
|
await this.wait(500);
|
9519
|
-
|
9520
|
-
|
9519
|
+
// Smooth scroll to bottom
|
9520
|
+
const scrollStep = 100;
|
9521
|
+
for (let scrollY = 0; scrollY < fullPageHeight; scrollY += scrollStep) {
|
9522
|
+
domDoc.defaultView?.scrollTo(0, scrollY);
|
9523
|
+
await this.wait(100);
|
9524
|
+
}
|
9521
9525
|
domDoc.defaultView?.scrollTo(0, 0);
|
9526
|
+
await this.wait(3000);
|
9522
9527
|
},
|
9523
9528
|
ignoreElements: (element) => {
|
9524
9529
|
// Skip cross-origin images that might cause issues
|