Repository navigation
fix(video): 保留全屏学习状态并下移主要播放操作 - #962
Merged
Merged
Conversation
…reliability-20261011
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.
点击字幕菜单或同一视频切换全屏宿主时,完整句学习原来会关闭或丢失草稿;学习快捷键还可能继续传到站点触发调速或跳转。这次用独立 session/placement 保留视图与草稿,限制按键作用域,对当前视频的全屏 Esc 显式调用退出接口,并让句尾控制等待自身 seek 完成,避免重复回跳。辅助不修改 playbackRate,手动拖动进度解除辅助。
播放操作移到正文下方:上一句、重播原句、下一句在紧凑与舒适布局中都固定可见;底部只有解释与收藏两个按钮。字幕菜单的学习入口更明显,帮助在面板内展开。标题可拖动,界面中心新增左侧预览、右侧调节的学习面板设置,支持布局、透明度、字号、宽度与默认位置,样式调整保留当前学习状态。
过滤原生字幕和控件图标更新引起的定位扫描与绑定,保留媒体/source/track、可见性、宿主和入口重挂载检查;普通已加载字幕不再逐帧检查。userscript 仅对项目内联 CSS 复用既有同步解压,四份 CSS 精确还原,无新增依赖、异步边界或预算上调。
验证:
保留基线限制:i18n 在不可变 58ef 与候选均为 57 通过、1 失败,同一组 195 条既有校订文案;docs:check 在原 e96 基线和候选均缺既有 Storybook colors 链接。历史独立 userscript 诊断两侧均超原预算,未提高预算。受控字幕与 HTTP transport 不代表真实服务质量;Firefox 仅验证构建。未修改或依赖参考仓库。
完整报告、实际截图、产物 SHA、基线与失败诊断:验证报告、性能协议。