Skip to content

Commit d638de9

Browse files
authored
Round scrolling cordinates; Fix #8 (#16)
1 parent c103ea0 commit d638de9

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 Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
1+
return Math.round(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 Math.max(document.documentElement.scrollTop, document.body.scrollTop);
1+
return Math.round(Math.max(document.documentElement.scrollTop, document.body.scrollTop));

0 commit comments

Comments
 (0)