diff options
author | Dan Ormisher <dan@danielormisher.com> | 2015-12-08 13:54:12 +0000 |
---|---|---|
committer | Dan Ormisher <dan@danielormisher.com> | 2015-12-08 13:54:12 +0000 |
commit | 507f91d644429f00784ec646cb8e70fe02f6b340 (patch) | |
tree | b07ba37bbf13d126f6215e3bc61511b2704b7db5 /src/boxes.js | |
parent | 3a6fe31f702078cee66118e2cb1b37d4e03c93e1 (diff) | |
download | svg.js-507f91d644429f00784ec646cb8e70fe02f6b340.tar.gz svg.js-507f91d644429f00784ec646cb8e70fe02f6b340.zip |
replaced usage of window.scrollX and window.scrollY with standard window.pageXOffset and window.pageYOffset in rbox() to stop NaN bug in IE
Diffstat (limited to 'src/boxes.js')
-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 |