Reduce opacity of dragged page on multidrag not just single

This commit is contained in:
Reece Browne 2024-12-16 19:37:15 +00:00
parent 9b6dcdcd06
commit 88079ddf7f
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@
}
.drag-manager_dragging {
opacity: 0.5;
opacity: 0.2;
}

View File

@ -41,6 +41,7 @@ class DragDropManager {
const pageEl = document.getElementById(`page-container-${index}`);
if (pageEl) {
pageEl.initialTransform = pageEl.style.transform || 'translate(0px, 0px)';
pageEl.classList.add('drag-manager_dragging');
}
return pageEl;
})