Repository navigation
feat(reader): 读完整本后展示完结页 - #50
Merged
Merged
Conversation
最后一章末屏再翻一次进入虚拟空白页,提示本书已读完;该页不计入分页,也不改阅读进度。 Co-authored-by: zilorn <[email protected]>
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
Fixes #49
用户读到最后一页再点下一页没有反应,不容易判断全书已经读完。
改动后的行为 / Resulting behavior
分页模式下,最后一章的最后一屏再向前翻一次,会进入一页虚拟空白页,居中显示「本书已读完」。再向前翻页停住,回翻回到刚才那一屏正文。双页模式这一次翻整屏。这一页不进入章节分页,也不改已保存的阅读进度。
滚动模式在最后一章正文后面显示同一句说明。自动翻页会先翻到这一页,下一次到达书末再停止。
手机与桌面共用阅读页。本次环境没有 Tauri 书库,浏览器里书架为空,无法打开真实阅读页截图。
验证 / Validation
pnpm exec tsc --noEmit通过pnpm run i18n:check通过pnpm build通过node scripts/reader-book-end-test.mjsnode scripts/reader-chapter-boundary-test.mjsnode scripts/tts-follow-recovery-test.mjsnode scripts/reader-position-transition-test.mjsnode scripts/reader-page-turn-test.mjsnode scripts/translation-position-test.mjs数据与兼容性 / Data and compatibility
不涉及。完结页不写入阅读进度,旧进度仍按章节字符偏移恢复到正文页。
提交前检查 / Checklist