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:
parent
424aeab8a1
commit
9b230c0569
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ?? "");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue