summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-05-27 14:21:48 +0200
committerGitHub <noreply@github.com>2019-05-27 14:21:48 +0200
commitbffb34afbd774c8837234e49fa9154a67e2df6d2 (patch)
tree3bc807d328eaa4c3fad466c5316850de15c8759f
parent8b6d8ed4231e0bedf25ee5d088b128e746584d08 (diff)
parentd48787e661ecbabcf144adabb35e6186e43f7503 (diff)
downloadnextcloud-server-bffb34afbd774c8837234e49fa9154a67e2df6d2.tar.gz
nextcloud-server-bffb34afbd774c8837234e49fa9154a67e2df6d2.zip
Merge pull request #15747 from nextcloud/bugfix/noid/drag-file-fix
Also allow dragging below the file list
-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;