0992879b49
React batches setSelectedItemIds, so when handleSetPendingDrag snapshots selectedItemIds, the just-toggled item isn't included yet. Fix: pass wasAlreadySelected boolean from TimelineTrack mousedown; handleSetPendingDrag manually applies the toggle (add/delete) to the snapshot so drag uses correct selection.