Skip to content

fix(desktop): make the macOS tab-strip empty space drag the window#3963

Merged
esengine merged 1 commit into
main-v2from
fix/darwin-titlebar-drag
Jun 11, 2026
Merged

fix(desktop): make the macOS tab-strip empty space drag the window#3963
esengine merged 1 commit into
main-v2from
fix/darwin-titlebar-drag

Conversation

@esengine

Copy link
Copy Markdown
Owner

Repro (#3853 / #3852, drag half of #3843): on macOS 1.5.0 the titlebar doesn't drag the window — dragging over the tab strip selects text instead.

Cause: the darwin chrome blanket-marks the entire tab strip and every tabbar descendant --wails-draggable: no-drag, leaving a 10px-tall "drag rail" at the very top of the 44px header as the only drag region. Nobody aims for a 10px sliver; everyone grabs the visible empty strip next to the tabs, which is the no-drag spacer.

Fix: re-enable --wails-draggable: drag on .tabbar__spacer (the flexible empty area between the last tab and the search button) and align-self: stretch it to full strip height. Tabs, the new-tab button, and the search button stay no-drag, so tab interactions are unaffected. The top rail is kept as an additional region.

The "Auto/YOLO 时金额边上文字重叠" part of #3843 is a separate rendering issue I couldn't reproduce from the code alone — leaving that issue open.

Needs a visual confirm on a real mac before release.

Closes #3853
Closes #3852

The darwin chrome blanket-marks the whole tabbar no-drag and leaves only
a 10px rail at the very top as the drag region, so dragging the visible
titlebar area selects text instead of moving the window. Re-enable drag
on the spacer between the last tab and the search button and stretch it
to the strip height -- the area every user actually grabs.

Closes #3853
Closes #3852
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 05:54
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026
@esengine esengine merged commit 01774d8 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the fix/darwin-titlebar-drag branch June 11, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 在mac os上标题栏无法拖动 [Bug]: 疑似bug mac桌面端 1.5.0 窗口拖拽问题

1 participant