From 1dd2bbb329305a8a9fd669ea2b72848c1bb5d9d4 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Wed, 3 Jun 2026 09:07:10 +0200 Subject: [PATCH] align grid and list view drag behavior --- copyparty/web/browser.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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()); }