Fix window scroll container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
366374d8e3
commit
bf56f2843c
|
@ -3523,9 +3523,9 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var $scrollContainer = this.$container;
|
var $scrollContainer = this.$container;
|
||||||
if ($scrollContainer[0] === window) {
|
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
|
// when the scroll container is the window
|
||||||
$scrollContainer = $('body');
|
$scrollContainer = $('html');
|
||||||
}
|
}
|
||||||
$scrollContainer.animate({
|
$scrollContainer.animate({
|
||||||
// Scrolling to the top of the new element
|
// Scrolling to the top of the new element
|
||||||
|
|
Loading…
Reference in New Issue