summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-25 15:08:14 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-25 15:08:14 +0100
commit664e7a3fc2e1ee4ea82026cfadbf17f34570ad6e (patch)
tree6cb4d271f8323a357a0207b1d912118bf922d4ce /apps/files/js
parent0f763f4508bf82e9e50713c6bc775a91ed3ad54c (diff)
downloadnextcloud-server-664e7a3fc2e1ee4ea82026cfadbf17f34570ad6e.tar.gz
nextcloud-server-664e7a3fc2e1ee4ea82026cfadbf17f34570ad6e.zip
use distance option to delay dragging in sane browsers
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 74b2e48fb02..6b9b23657dc 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -863,6 +863,10 @@ var dragOptions={
$('#fileList tr td.filename').addClass('ui-draggable');
}
}
+// sane browsers support using the distance option
+if ( ! $.browser.msie) {
+ dragOptions['distance'] = 20;
+}
var folderDropOptions={
drop: function( event, ui ) {