Repository navigation
fix: 完成闪烁真凶——收尾重建淡入层导致动画从零重放 - #358
Merged
Merged
Conversation
浏览器逐帧复现用户原话短回答(单行带加粗与emoji)抓到现行:流式结束后 装饰层为'还没淡完的字符'重建包裹 span,新元素的 wb-stream-in 动画从 opacity 0 重新播一遍——刚打完的字瞬间消失再淡回,短答案整行都是刚打 的字,整行闪。复现数据:收尾 17 次 DOM 变更、重建 span 动画重放。 修复:流式结束装饰层直接清空(回到好状态行为)——已完成淡入的 span 摘除在视觉上完全无感(动画已完成、终态即满透明度),仅进行中的淡入会 立刻定格为满透明度,读起来是'这一行写完了'。保留#351节奏化(会话内 淡入照常)与边界保护。 验证:同场景复验收尾后 spansLeft=0、最终HTML干净、段落top/height 零变化;WeiBeiWebEditorCheck 0;test:editor 18/18。
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.
复现链(浏览器逐帧+DOM断言,用户原话文本)
短回答『那我再猜一次:你叫 小安?😄』后缀逐字流式→finish,收尾瞬间 17 次 DOM 变更,其中淡入装饰层被重建:为还没淡完的字符重新创建 wb-stream-in span,新元素把 260ms 淡入动画从 opacity 0 重放——刚打完的字瞬间消失再淡回=用户所见『闪了一下然后又出来』。短答案整行都是刚打的字,整行闪。这是 #346 淡入自然过期改动引入的回归(好状态是直接清空装饰层)。
修复
streaming-appearance.ts 装饰层在流式结束后直接返回空(回到好状态行为):已完成淡入的 span 摘除视觉无感;进行中的立刻定格满透明度。#351 的节奏化(会话内淡入)与映射边界保护保留。
验证
/)、段落 top/height 零变化、无动画可重放