From 507f91d644429f00784ec646cb8e70fe02f6b340 Mon Sep 17 00:00:00 2001 From: Dan Ormisher Date: Tue, 8 Dec 2015 13:54:12 +0000 Subject: replaced usage of window.scrollX and window.scrollY with standard window.pageXOffset and window.pageYOffset in rbox() to stop NaN bug in IE --- src/boxes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3