diff options
author | Aditya Raghavan <araghavan3@gmail.com> | 2014-12-20 21:52:17 -0500 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-12-24 00:33:00 +0300 |
commit | d21edb599d8f5f80a3f3ecba5b62311b9cd1a3e6 (patch) | |
tree | cfbe4e09b2f5eebb4f4cfb18fd0f6fa5ed642d95 /src/offset.js | |
parent | d6c97abb744bfe8c67ab9158aecdb5bb1c05e47b (diff) | |
download | jquery-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.js | 4 |
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 { |