Skip to content

Commit 3f4a62c

Browse files
collnwalkrspinningarrow
authored andcommitted
applied fix to offset( ) return left.
1 parent 2129ffd commit 3f4a62c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/zoom-vanilla.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zoom-vanilla.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/zoom-vanilla.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var rect = element.getBoundingClientRect()
77
return {
88
top: rect.top + window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0,
9-
left: rect.left + document.body.scrollLeft
9+
left: rect.left + window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0
1010
}
1111
}
1212

0 commit comments

Comments
 (0)