aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorErik Pellikka <erik@pellikka.org>2016-02-23 09:05:06 -0500
committerMorris Jobke <hey@morrisjobke.de>2016-05-13 21:01:13 +0200
commit45ff21e8d55839470039ba42f0d41f7c0acb60be (patch)
treeba8cc25535fc2b5adb0639a3ea478f3ba1b0a76a /apps/files/js/files.js
parente7366213f5527f117ccb7a6332eb92bcf9ccaf9b (diff)
downloadnextcloud-server-45ff21e8d55839470039ba42f0d41f7c0acb60be.tar.gz
nextcloud-server-45ff21e8d55839470039ba42f0d41f7c0acb60be.zip
fixed to work with share links as well
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 77dd4a2db25..39a25becf12 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -401,20 +401,21 @@ var dragOptions={
$selectedFiles.closest('tr').fadeTo(250, 1).removeClass('dragging');
},
drag: function(event, ui) {
- var currentScrollTop = $("#app-content").scrollTop();
+ var scrollingArea = FileList.$container;
+ var currentScrollTop = $(scrollingArea).scrollTop();
var scrollArea = Math.min(Math.floor($(window).innerHeight()/2), 100);
var bottom = $(window).innerHeight() - scrollArea;
var top = $(window).scrollTop() + scrollArea;
if (event.pageY < top){
- $("#app-content").scrollTop(currentScrollTop-=10);
+ $(scrollingArea).scrollTop(currentScrollTop-=10);
}
if (event.pageY > bottom)
{
- $("#app-content").scrollTop(currentScrollTop+=10);
+ $(scrollingArea).scrollTop(currentScrollTop+=10);
}