diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/boxes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boxes.js b/src/boxes.js index eca32ec..3066be2 100644 --- a/src/boxes.js +++ b/src/boxes.js @@ -125,8 +125,8 @@ SVG.RBox = SVG.invent({ fullBox(this) // offset by window scroll position, because getBoundingClientRect changes when window is scrolled - this.x += window.scrollX - this.y += window.scrollY + this.x += window.pageXOffset + this.y += window.pageYOffset } // define Parent |