diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-31 08:52:15 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 14:15:41 +0200 |
commit | 6bf770e8b90570f027e69720687bcd524b99c03a (patch) | |
tree | a95a137e3e03560d05bc647fe3af413e765960e2 /apps/files/js | |
parent | 5d375647a5690275318b1299f1d9d716cb96b038 (diff) | |
download | nextcloud-server-6bf770e8b90570f027e69720687bcd524b99c03a.tar.gz nextcloud-server-6bf770e8b90570f027e69720687bcd524b99c03a.zip |
Fix file list scrolling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 | ||||
-rw-r--r-- | apps/files/js/files.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 8407cb79bb3..d60def34ebf 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -275,7 +275,7 @@ if (options.id) { this.id = options.id; } - this.$container = options.scrollContainer || $(window); + this.$container = options.scrollContainer || $('#app-content'); this.$table = $el.find('table:first'); this.$fileList = $el.find('.files-fileList'); this.$header = $el.find('.filelist-header'); diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 8f456273f69..614186bc86a 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -484,7 +484,7 @@ var dragOptions={ $('.crumbmenu').removeClass('canDropChildren'); }, drag: function(event, ui) { - var scrollingArea = window; + var scrollingArea = FileList.$container; var currentScrollTop = $(scrollingArea).scrollTop(); var scrollArea = Math.min(Math.floor($(window).innerHeight() / 2), 100); |