diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-31 09:52:15 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 15:15:41 +0300 |
commit | 6bf770e8b90570f027e69720687bcd524b99c03a (patch) | |
tree | a95a137e3e03560d05bc647fe3af413e765960e2 /apps/files | |
parent | 5d375647a5690275318b1299f1d9d716cb96b038 (diff) |
Fix file list scrolling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-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); |