Fix window scroll container

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-06-19 10:56:59 +02:00 committed by Backportbot
parent 0c79118e9f
commit 265a7ad882
1 changed files with 2 additions and 2 deletions

View File

@ -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