mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
Fix file list scrolling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
5d375647a5
commit
6bf770e8b9
2 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue