mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
remove legacy drag drop method to prevent unwanted behavior
This commit is contained in:
parent
1e7c6bd46f
commit
50d2f8b149
|
|
@ -10994,19 +10994,18 @@ var drag = (function() {
|
|||
currLink = e.dataTransfer.getData("text/plain");
|
||||
console.log("elem.ondrop: " + currLink);
|
||||
fileman.clip = currLink.split("\n");
|
||||
|
||||
fileman.cut();
|
||||
msel.evsel();
|
||||
|
||||
if (fileman.clip.length) {
|
||||
r.is_dragging = true;
|
||||
(elem.tagName == "TR" ? elem.querySelector("a[id]") : elem).click();
|
||||
}
|
||||
}
|
||||
else{
|
||||
clmod(elem, "dtarget");
|
||||
clmod(current, "sel", true);
|
||||
msel.selui();
|
||||
fileman.clip = [];
|
||||
}
|
||||
fileman.cut();
|
||||
msel.evsel();
|
||||
|
||||
if (fileman.clip.length) {
|
||||
r.is_dragging = true;
|
||||
(elem.tagName == "TR" ? elem.querySelector("a[id]") : elem).click();
|
||||
// wrong source location
|
||||
return
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue