DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: Mac上desktop按住标题栏拖到困难,无法最大化窗口

Open jintianxiayu opened this issue 5 months ago • 2 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.9.1

What happened?

Image 仅在红框区域中按住可拖动窗口,或 当按住红色箭头指向的边框时可拖动。 双击标题栏无法最大化窗口。

Steps to reproduce


OS / platform

macos

Relevant logs or output


jintianxiayu avatar Jun 17 '26 15:06 jintianxiayu

“新的会话” 到 复制按钮之间的这段空白,也是可以拖动的,但还是很诡异

fengqi avatar Jun 18 '26 02:06 fengqi

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.

esengine avatar Aug 04 '26 13:08 esengine

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.

esengine avatar Aug 05 '26 00:08 esengine