Repository navigation
修复阅读器翻页落定时已加载图片闪烁 - #17
Merged
Merged
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.
解决的问题 / Problem
含插图的章节在翻页动画结束后,预览屏被卸载,当前屏重新挂载
<img>;即使图片地址已加载,新节点仍可能留下解码或绘制的空白帧。Fixes #15。改动后的行为 / Resulting behavior
验证 / Validation
pnpm exec tsc --noEmit通过。pnpm run i18n:check通过;保留现有提示,无新增界面文案。pnpm build通过。node scripts/reader-page-turn-test.mjs、node scripts/reader-position-transition-test.mjs、node scripts/tts-follow-recovery-test.mjs、node scripts/reader-auto-page-test.mjs全部通过;git diff --check通过。renderPagedSpread、图片组件、翻页入口与折页模块。验证已解码块图/行内图落页后仍为原节点、没有新增 load 事件,以及当前正文引用、回弹、快速打断、回翻、奇数末屏、重排释放和减少动态效果,均通过。夹具使用 data URL 图片与模拟章节,不等同于原生应用实测。readerx-img协议的瞬时视觉表现、原生音量键和真实跨章下载。设备验收建议:打开图片已加载的本地或在线章节,分别点按、横滑与快速连续翻页,再检查回弹、反向翻页和双页末屏。数据与兼容性 / Data and compatibility
不涉及持久化格式、迁移、图片文件或协议地址修改。分页 DOM / 解码范围限制为当前及相邻屏,避免为整章保留图片节点;原生 WebView 仍需确认实际绘制与内存表现。
提交前检查 / Checklist