Skip to content

TML-813 增加键鼠机位操控的垂直反转选项 - #18

Closed
SeasonsChange422 wants to merge 1 commit into
mainfrom
agent/agent/1443ad39
Closed

TML-813 增加键鼠机位操控的垂直反转选项#18
SeasonsChange422 wants to merge 1 commit into
mainfrom
agent/agent/1443ad39

Conversation

@SeasonsChange422

Copy link
Copy Markdown
Member

目标

为键鼠机位操控增加默认关闭的“垂直反转”选项,并沿用现有机位操控参数的编辑器会话保存范围。

变更范围

  • 扩展 CameraDriveSettings,规范化并应用 invertMouseY,只反转鼠标俯仰输入。
  • 在机位操控栏增加可访问的“垂直反转”复选框和紧凑响应式样式。
  • 切换选项时清除待处理的鼠标视角输入并结束当前右键手势,同时保留键盘移动状态。
  • 增加单元、组件、路由及 Playwright 回归覆盖。

验收标准

  • 机位操控区域可直接开启或关闭垂直反转,状态清晰。
  • 开启后仅反转鼠标垂直拖动,水平旋转和键盘操控不受影响。
  • 关闭后保持原有行为,切换时不发生突跳或继承旧指针手势。
  • 设置沿用现有操控参数的会话范围,项目切换时保留,页面重新载入后恢复默认关闭。
  • 覆盖开启、关闭、切换和重新载入回归场景。

测试结果

  • Focused Vitest: 135 passed
  • Focused Chromium Playwright vertical-inversion regression: passed
  • npm run typecheck: passed
  • npm run lint: passed with 4 pre-existing Fast Refresh warnings and 0 errors
  • npm test: passed; existing React test warnings remain
  • npm run build: passed; existing large-chunk warning remains
  • Desktop 1440x900 and mobile 375x667 visual checks: checked state visible, no child overlap, no horizontal overflow

风险和回滚

风险集中在活动指针手势的切换边界;单元、路由和浏览器回归均覆盖该路径。回滚可直接撤销本 PR 提交,不涉及数据迁移或持久化格式变更。

Co-authored-by: multica-agent <github@multica.ai>
@TML-BOT

TML-BOT commented Sep 4, 2026

Copy link
Copy Markdown

PR 规范检查结果

状态:不通过
Head SHA:92e9a653b2e7ba083d4984584a5712b881d1423c
策略版本:3

通过:

  • 目标分支为默认分支 main
  • 无合并冲突
  • 分支与目标分支保持最新,满足 require_up_to_date_branch
  • PR 正文包含必需的 task_idTML-813)与 run_id 元数据
  • PR 标题包含与正文元数据完全一致的 task_idTML-813),满足 require_task_id_in_pr_title
  • 必需检查 ci:通过

失败:

  • 分支名 agent/agent/1443ad39 不匹配策略 ^(ai|feat|fix|refactor|chore)/.+$
  • 必需检查 git-governance:失败(Validate pull request:branch name does not match policy: agent/agent/1443ad39)

下一步:将 PR 来源分支改为 ai/feat/fix/refactor/chore/ 前缀(如 fix/TML-813-vertical-inversion),推送后使 cigit-governance 检查重新运行。本评论不阻止合并;最终合并资格由原生 cigit-governance 与分支保护决定。

@SeasonsChange422
SeasonsChange422 deleted the agent/agent/1443ad39 branch September 4, 2026 18:52
@SeasonsChange422
SeasonsChange422 restored the agent/agent/1443ad39 branch September 4, 2026 18:53
@SeasonsChange422

Copy link
Copy Markdown
Member Author

Superseded by #19 on compliant branch feat/TML-813-invert-camera-y; delivery metadata and TML-813 history are preserved there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants