fix(notebook): robust drag-and-drop tree reordering, bundle preservation, and coordinate-derived drop intent #64

Merged
clanker merged 1 commit from fix/notebook-dnd-ordering into main 2026-09-16 08:08:33 +00:00
Member

Summary of changes

  • Calculated drop intent directly from client drop event coordinates to eliminate React state latency and misclassified drops.
  • Calibrated drop intent thresholds to 35% before / 30% inside / 35% after to reduce accidental nesting.
  • Replaced iterative array scans in isDescendantOf and getAllDescendants with Map-based hierarchy traversals.
  • Enforced contiguous descendant placement on drop insertion to prevent split tree hierarchies.
### Summary of changes - Calculated drop intent directly from client drop event coordinates to eliminate React state latency and misclassified drops. - Calibrated drop intent thresholds to 35% before / 30% inside / 35% after to reduce accidental nesting. - Replaced iterative array scans in isDescendantOf and getAllDescendants with Map-based hierarchy traversals. - Enforced contiguous descendant placement on drop insertion to prevent split tree hierarchies.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Home/Spheres4Dummies!64
No description provided.