scrolled-doc 对大书不稳(依赖点目录、下一页只在框内、卡死),且一次性 渲染大量章节导致 about:srcdoc / unload 报错刷屏。改回原生分页: - renderTo 用 default manager + flow paginated + spread none,只渲染当前页 - 翻页回到 rendition.prev()/next(),用 relocated 的 atStart/atEnd 控按钮 - 阅读位置从 scrollTop 改为 location.start.cfi 持久化;兼容旧的数字/JSON 格式 - 保留首渲重试:display 后轮询 iframe 正文,3 次失败才报「正文渲染失败」 - 新增「连续选取」开关:flow scrolled-doc ⇄ paginated,按当前 CFI 重定位, 连续模式下翻页先滚视口、到边界再翻章节 - 导航防卡死:display/prev/next 加 8s 超时,失败后复位 epubjs 队列, 并在跳转前用 spine.get 校验目标,避免过期 CFI 把队列拖死 - .epub-viewport 改 overflow hidden,分页滚动交给内部 .epub-container Co-Authored-By: Claude Code <noreply@anthropic.com>
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.