aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorAditya Raghavan <araghavan3@gmail.com>2014-12-20 21:52:17 -0500
committerOleg Gaidarenko <markelog@gmail.com>2014-12-24 00:33:00 +0300
commitd21edb599d8f5f80a3f3ecba5b62311b9cd1a3e6 (patch)
treecfbe4e09b2f5eebb4f4cfb18fd0f6fa5ed642d95 /src/offset.js
parentd6c97abb744bfe8c67ab9158aecdb5bb1c05e47b (diff)
downloadjquery-d21edb599d8f5f80a3f3ecba5b62311b9cd1a3e6.tar.gz
jquery-d21edb599d8f5f80a3f3ecba5b62311b9cd1a3e6.zip
Event: fix incorrect window bug with scrollTop/Left in iframes
Fixes gh-1945 Closes gh-1959
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js
index 69e571f7f..f4b478f10 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -171,8 +171,8 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
if ( win ) {
win.scrollTo(
- !top ? val : window.pageXOffset,
- top ? val : window.pageYOffset
+ !top ? val : win.pageXOffset,
+ top ? val : win.pageYOffset
);
} else {