From 265a7ad882ce8de8686b78c3b590582e8d17b737 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Wed, 19 Jun 2019 10:56:59 +0200 Subject: [PATCH] Fix window scroll container MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/filelist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 3f4c14f95d0..2e3f3e2ebb6 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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 -- 2.39.5