fix: 修复截图菜单被动态命中检测穿透 - #217
Merged
Merged
Conversation
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.
问题与修复
Windows 使用 Spine 动态点击穿透时,打开「+」菜单后,截图按钮虽然可见,鼠标却会穿透到底层窗口。引入提交为
252af3aa984f3046dcb95417e375b77cb5e7ee9f(2026-09-14,内置 Spine 形态并完善工坊与动态点击穿透)。菜单只更新了原生窗口区域,动态检测读取的会话状态没有菜单区域。在原生更新成功后保存菜单命中区域,关闭时清除;鼠标轮询、穿透切换和延迟返回的立绘检测共用控件优先判断。恢复窗口命中区域时也保留已打开的菜单。原生更新失败保留此前状态。
验证
cargo test --manifest-path desktop/src-tauri/Cargo.toml composer_tool_dock -- --nocapture,1 项通过,覆盖菜单打开、关闭、区域边界及原生更新失败。cargo test --manifest-path desktop/src-tauri/Cargo.toml dynamic_hit_test -- --nocapture,1 项通过。cargo fmt --check、git diff --check通过。