fix(ui): 捕获嵌套滚动以校正导航悬停 - #22
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
SidebarContent 内嵌 ScrollArea 后,实际滚动发生在后代 viewport。原来的非捕获 scroll 监听收不到该事件,鼠标静止时导航项的悬停高亮可能停留在旧位置。
将监听改为 capture + passive,继续复用现有命中测试和动画帧合并;原生滚动容器也沿用同一路径。
验证:宿主 Desktop 已接入并完成滚动、底部留白检查;源码 lint 通过。尚未完成人工确认嵌套滚动中的 hover 校正,保留 Draft。