fix: dragging files selects no text; without a drag the names select as before

This commit is contained in:
redtea committed 2026-10-16 10:10:08 +03:00
1 parent bc1736f105
commit 96163ebf86
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -50,6 +50,9 @@
begin();
}
d.ghost.style.transform = 'translate(' + (ev.clientX + 12) + 'px,' + (ev.clientY + 10) + 'px)';
// What the browser began to select before the drag was told apart goes.
const sel = getSelection();
if (sel && !sel.isCollapsed) sel.removeAllRanges();
d.target = null;
box.hidden = true;
d.ghost.dataset.hint = '';