fix(notebook): eliminate drag-and-drop browser freeze and restore bundle preservation #63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/notebook-dnd-hang"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root Cause
setDropTargetwas creating a new object reference on every frame (60-120 FPS), causing full notebook re-renders and re-calculation of budget statistics.scale-[1.01],transition-all, and unmountingbudgetStatsto mountNest insideshifted row bounding boxes, causing dragover position checks to alternate betweenbeforeandinsidein an infinite loop.Changes
setDropTargetusing equality checks onprevto skip redundant state changes.e.stopPropagation()ande.dataTransfer.dropEffect = 'move'to drag event handlers.scale-[1.01]andtransition-allwith non-reflowingring-2andtransition-colors.Nest insidebadge as an absolute overlay and kept budget badges visible to maintain stable row height.getAllDescendantscollection so dragging an item moves its full subtree together.