function handleDragLeave()

in script.js [759:768]


  function handleDragLeave(e) {
    // Find the tree item element that triggered the leave event
    const treeItem = e.target.closest('.tree-item');

    // Only remove the drag-over class if we're actually leaving the element
    // and not just moving between its children
    if (treeItem && !treeItem.contains(e.relatedTarget)) {
      treeItem.classList.remove('drag-over');
    }
  }