mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The recent macOS title-bar drag fix marked the entire session tab strip as a native drag region. That restored window movement in the overlay title area, but it also intercepted the tab component's own HTML drag events and regressed manual tab reordering. This narrows the native drag surface to a small gutter beside the tabs while keeping the explicit empty-space startDragging fallback, and adds a focused regression test for drag-to-reorder. Constraint: Must preserve window dragging from non-tab title-bar space on macOS overlay windows Rejected: Keep the whole tab bar as a drag region | conflicts with tab-level drag-and-drop reordering Confidence: high Scope-risk: narrow Reversibility: clean Directive: Do not reapply data-tauri-drag-region to the full tab strip unless tab reordering is redesigned around a different drag mechanism Tested: bun run test -- src/components/layout/TabBar.test.tsx; bun run lint; bun run build Not-tested: Manual desktop runtime verification after this commit