Files
my_bookmate/frontend
gavindiazandClaude Code 379e7a3b0b fix: 阅读全书三处问题(翻页/高亮标记/位置记忆)
1. 翻页 + 跨页选取:默认回到 paginated 翻页模式(epubjs 原生 next/prev,不再失效),新增「连续选取」开关临时切到 scrolled-doc 跨页跨章选文字,切回翻页时 epubjs 自动回到原位置;连续模式下 prev/next 改为按视口高度滚动
2. 高亮不留标记:旧实现用「打开时的快照」画高亮,新建的高亮翻页/滚动回来就消失。改为 ref 实时维护高亮列表,每次内容渲染都重画;保存高亮就地标注,不再 display() 跳转打断阅读
3. 位置不记住:去掉恢复后 currentLocation() 覆盖已存位置的逻辑(scrolled 下恢复未命中会把错误位置写回,导致每次打开都从头开始);位置改由 relocated 事件在正常翻页/滚动时自动保存

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-26 17:24:02 +08:00
..

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:

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.