TML-838 fix mixed pointer ownership - #20
Open
SeasonsChange422 wants to merge 1 commit into
Open
Conversation
Multica-Task: TML-838 Multica-Run: 430e8613-f55d-4f56-983b-e1616d677ed3 Co-authored-by: multica-agent <github@multica.ai>
PR 规范检查结果状态:通过 通过:
下一步:等待仓库原生合并门禁(
|
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.
目标
修复 TML-838 复审发现的两项混合输入 owner 丢失问题与次级 pointer 传播竞态,并提供真实 Chromium touch/pen 回归证据。
变更范围
(pointerId, pointerType)管理右键菜单与相机 look owner,所有不同 pointer pair 均不得抢占或清除 owner。contextmenu仅抑制默认行为;owner 仅由自身终止事件、buttons 归零、lost capture、blur、visibility 或超时恢复。验收标准
contextmenu不再清除活动 mouse owner。测试结果
npm test: 98 个测试文件通过、1 个跳过;1,648 条测试通过、1 条跳过。npx vitest run packages/studio/test/camera-drive-routing.test.tsx: 59/59 通过。npm run typecheck: 通过。npm run lint: 0 error;4 条既有 Fast Refresh warning。npm run build: 通过;保留既有 chunk size warning。git diff --check origin/main..HEAD: 通过。风险和回滚
改动仅限 viewport pointer 路由与对应测试,不涉及数据结构或持久化。若出现输入设备兼容性回归,可回滚提交
4cfe2f2;本 PR 不自行合并,等待原审查员复审。