[Bug]: Mac上desktop按住标题栏拖到困难,无法最大化窗口
Version line
v2 — Go rewrite (1.x), main-v2 (active development)
Exact version
1.9.1
What happened?
Steps to reproduce
OS / platform
macos
Relevant logs or output
“新的会话” 到 复制按钮之间的这段空白,也是可以拖动的,但还是很诡异
Half of this is fixed, half needs a macOS repro I can't produce.
双击标题栏最大化 — fixed in #7473. The cause is in the Wails drag runtime, not our CSS: it explicitly drops any mousedown with detail !== 1 ("Do not start dragging if more than once has been clicked") and does not hand the double click back to the OS. Windows already zoomed from an app-side handler; macOS hides its title bar the same way and had nothing, so the gesture did nothing at all. That handler now covers macOS too.
拖动区域太窄 — still open. The header does declare drag regions (.topicbar, .sidebar, .topbar, .workbench-dock__tools all set --wails-draggable: drag), with interactive children opting out. So the intent is a wide drag surface, and what @fengqi describes — the gap between 新的会话 and 复制 dragging fine — is that surface working. What I can't tell from here is which specific elements are eating the rest on macOS; the candidates are the no-drag blocks on .topicbar__actions and, darwin-only, .app--darwin .app-chrome--tabs .tabbar *.
If you're still on this: a screenshot with the window at a normal width, and whether the draggable area changes between 工作台 and 经典 layout, would narrow it a lot — the two layouts hide different parts of the header.
Fixed since: the macOS window now uses a native title bar (TitleBarHiddenInset) — drag works normally, the traffic-light maximize/zoom buttons are present, and double-clicking the title bar zooms (#7473). Please update to a current release; reopen if dragging or maximizing still misbehaves.