diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 3a4883cd..7f05a356 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -11023,8 +11023,15 @@ var drag = (function() { current = e.target; r.no_warn = true; - clmod(current, "sel", true); - msel.selui(); + if(!clgot(current, "sel")) + { + msel.so = msel.pr = null; + var trs = QSA('#files tbody tr'); + for (var a = 0, aa = trs.length; a < aa; a++) + clmod(trs[a], 'sel', false); + clmod(current, "sel", true); + msel.selui(); + } e.dataTransfer.setData("text/plain", r.getFilesString()); }