Repository navigation
Conversation
Contributor
Author
|
我认为这是修正标题栏误触时额外引入的一处 Windows 交互回归,值得修复。相关改动的时间线比较清楚。
这次修复让 Windows 最大化窗口的标题栏空白区重新走原生拖动。Windows 11 的 WebView2 测试窗口实测恢复到原尺寸,鼠标按住时仍能继续跟随。回归测试也覆盖了 |
Refresh the startup maximize state on resize and stop syncing during the startup handoff. Cover the delayed state change from a native caption drag. AI-assisted. Verified with 150 focused Web UI tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Motivation
The shared drag guard introduced in #3234 stopped all window dragging while maximized. Windows normally restores and moves a maximized window during a caption drag. This restores that gesture for Windows while keeping the tab hit-target fix from #3075.
Verification
pnpm --dir src/web-ui run test:run src/app/components/SceneTopBar/SceneTopBar.test.tsx src/app/startup/startupPreload.test.ts src/infrastructure/runtime/environment.test.ts src/infrastructure/runtime/window.test.tspassed all 75 tests. Five of the new assertions failed against the old guard. The tests cover maximized and fullscreen states, startup, and main and panel tab hit targets.pnpm run check:webandgit diff --checkpassed.AI-assisted change with independent regression and review.