Fixed selectedpage indexing in drag and drop manager.

This commit is contained in:
Connor Yoh 2025-02-28 17:36:38 +00:00
parent 10a79461ba
commit 819c138654

View File

@ -39,7 +39,7 @@ class DragDropManager {
// Multi-page drag logic
this.selectedPageElements = window.selectedPages
.map((index) => {
const pageEl = document.getElementById(`page-container-${index}`);
const pageEl = Array.from(this.wrapper.childNodes)[index];
if (pageEl) {
pageEl.initialTransform = pageEl.style.transform || 'translate(0px, 0px)';
pageEl.classList.add('drag-manager_dragging');