]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix window scroll container 16009/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 19 Jun 2019 08:56:59 +0000 (10:56 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 19 Jun 2019 09:14:57 +0000 (11:14 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/js/filelist.js

index 4d3a171a8e7a7e8a9cd0bc21bc6c9e9c47438c41..22b5a82326a7f654e36f2763456835dfc219f931 100644 (file)
                        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