Skip to content

Commit 1e24a98

Browse files
unleashurgeekglibas
authored andcommitted
Fixing screenshots on IE (#3)
* Fixing screenshots on IE
1 parent 42d2dd4 commit 1e24a98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return window.scrollX;
1+
return Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return window.scrollY;
1+
return Math.max(document.documentElement.scrollTop, document.body.scrollTop);

0 commit comments

Comments
 (0)