]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix window scroll container 16016/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 19 Jun 2019 08:56:59 +0000 (10:56 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 19 Jun 2019 17:43:19 +0000 (17:43 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/js/filelist.js

index 3f4c14f95d0f3c398b2dc10f6ba0744cafab838c..2e3f3e2ebb62aca928ed920f2b8fadfbb0ad6aaf 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