[stable16] Fix window scroll container (#16016)
[stable16] Fix window scroll container
This commit is contained in:
commit
5055d63f37
|
@ -3525,9 +3525,9 @@
|
|||
var _this = this;
|
||||
var $scrollContainer = this.$container;
|
||||
if ($scrollContainer[0] === window) {
|
||||
// need to use "body" to animate scrolling
|
||||
// need to use "html" to animate scrolling
|
||||
// when the scroll container is the window
|
||||
$scrollContainer = $('body');
|
||||
$scrollContainer = $('html');
|
||||
}
|
||||
$scrollContainer.animate({
|
||||
// Scrolling to the top of the new element
|
||||
|
|
Loading…
Reference in New Issue