From 1e7c6bd46f0246110a67621eea1321a2c4300e1b Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Tue, 2 Jun 2026 23:21:54 +0200 Subject: [PATCH] fix for removing selection of other elements on unselected drag --- copyparty/web/browser.js | 4 ++-- copyparty/web/up2k.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 3227746b..eabf7f1f 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -10992,7 +10992,7 @@ var drag = (function() { ev(e); if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){ currLink = e.dataTransfer.getData("text/plain"); - console.log(currLink); + console.log("elem.ondrop: " + currLink); fileman.clip = currLink.split("\n"); } else{ @@ -11066,7 +11066,7 @@ var drag = (function() { 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', fun); + clmod(trs[a], 'sel', false); clmod(current, "sel", true); msel.selui(); } diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 9d9e7099..240162d5 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -1197,7 +1197,7 @@ function up2k_init(subtle) { console.log(e.dataTransfer.getData("text/plain")) if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){ var currLink = e.dataTransfer.getData("text/plain"); - console.log(currLink); + console.log("wrap.ondrop: " + currLink); fileman.clip = currLink.split("\n"); fileman.cut();