mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Event: fix incorrect window bug with scrollTop/Left in iframes
Fixes gh-1945 Closes gh-1959
This commit is contained in:
committed by
Oleg Gaidarenko
parent
d6c97abb74
commit
d21edb599d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user