fix(timeline): hitTest 过滤隐藏轨道,隐藏轨片段不可点选/拖拽/框选 (#146)#152
Open
cuic19053-hue wants to merge 1 commit into
Open
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.
fixes #146
问题
上游一致性审计发现:\hitTestClip\(web/src/components/timeline/hitTest.ts)未过滤 \ rack.hidden\,隐藏轨道上的片段仍可被命中拖拽,导致混乱。
修复
在命中测试与框选两个入口均跳过 \ rack.hidden\ 的轨道:
两处保持一致,确保隐藏轨的片段既不能被单点拖拽,也不能被框选批量选中。
与上游一致性
对齐上游隐藏轨道行为:hidden track 上的片段不参与命中测试。
验证