Allow copy-move drag feedback for chapter reordering

Set effectAllowed to copyMove in dragstart so Chromium renders a valid
drop cursor over chapter rows on X11 and other platforms (the effective
operation remains move via dropEffect). On native Wayland the prohibited
cursor persists as a known upstream Chromium/Electron platform
limitation; no DOM change can reach it.
This commit is contained in:
avi 2026-08-17 21:02:04 -05:00
commit 9b230c0569

View file

@ -757,7 +757,7 @@ export function initBook(api: FolioAPI) {
draggingId = li.dataset.id ?? null; draggingId = li.dataset.id ?? null;
li.classList.add("dragging"); li.classList.add("dragging");
if (e.dataTransfer) { if (e.dataTransfer) {
e.dataTransfer.effectAllowed = "move"; e.dataTransfer.effectAllowed = "copyMove";
e.dataTransfer.setData("text/plain", draggingId ?? ""); e.dataTransfer.setData("text/plain", draggingId ?? "");
} }
}); });