From 9b230c0569de4a9ac4597703d577dcf09e53a035 Mon Sep 17 00:00:00 2001 From: avi Date: Mon, 17 Aug 2026 21:02:04 -0500 Subject: [PATCH] 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. --- src/renderer/book.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/book.ts b/src/renderer/book.ts index 2aa1eb4..e535c74 100644 --- a/src/renderer/book.ts +++ b/src/renderer/book.ts @@ -757,7 +757,7 @@ export function initBook(api: FolioAPI) { draggingId = li.dataset.id ?? null; li.classList.add("dragging"); if (e.dataTransfer) { - e.dataTransfer.effectAllowed = "move"; + e.dataTransfer.effectAllowed = "copyMove"; e.dataTransfer.setData("text/plain", draggingId ?? ""); } });