better edit behavior for contents

This commit is contained in:
Simon Martens
2026-01-16 20:35:34 +01:00
parent 0a33796b4d
commit c3d295f420
3 changed files with 5 additions and 10 deletions

View File

@@ -725,6 +725,10 @@
if (!item) {
return;
}
if (item.classList.contains("data-editing")) {
event.preventDefault();
return;
}
draggedItem = item;
item.dataset.dragging = "true";
draggedItem.classList.add("opacity-60");