From bf56f2843c3076052894d89b05c9476872639707 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 19 Jun 2019 10:56:59 +0200 Subject: Fix window scroll container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/filelist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4d3a171a8e7..22b5a82326a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -3523,9 +3523,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 -- cgit v1.2.3