aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-27 13:00:45 +0200
committerJulius Härtl <jus@bitgrid.net>2019-05-27 13:00:45 +0200
commitd48787e661ecbabcf144adabb35e6186e43f7503 (patch)
tree3bc807d328eaa4c3fad466c5316850de15c8759f /apps/files/js
parent8b6d8ed4231e0bedf25ee5d088b128e746584d08 (diff)
downloadnextcloud-server-d48787e661ecbabcf144adabb35e6186e43f7503.tar.gz
nextcloud-server-d48787e661ecbabcf144adabb35e6186e43f7503.zip
Also allow dragging below the file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d546186aff9..6163f34864b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -3350,6 +3350,7 @@
&& !self.$el.is(dropTarget) // dropped on list directly
&& !self.$el.has(dropTarget).length // dropped inside list
&& !dropTarget.is(self.$container) // dropped on main container
+ && !self.$el.parent().is(dropTarget) // drop on the parent container (#app-content) since the main container might not have the full height
) {
e.preventDefault();
return false;