Spaces:
Running

vomebook commited on
Commit
166a79c
·
1 Parent(s): 11c5876

feat(reader): Readwise-style follow, 回到原位置 toggle, background listening

Browse files

Any reader-initiated scroll (wheel/touch/scroll keys/pointer navigation) stops auto-follow until 回到播放位置 or a new start, so sentences no longer pull the page back. After 回到播放位置 the button reads 回到原位置 until the playing sentence leaves the view. 听书 starts at the first line in view (loading that page/section first). The button appears only once text is found near the reading position (scanned PDFs, comics). Closing a Reader that is reading keeps it hidden with a small player (返回阅读/暂停/停止); reopening the same book reuses it, opening another book releases it. The shared player keeps list numbers (1. / (3).) with their item.

6 files changed +528 -56
Files changed (6)
static/app.js+4-1
static/reader/ui/reader-speech.mjs+137-21
static/search/reader-navigation.js+134-23
static/style.css+34
static/tts-client.js+82-5
tests/test_reader_speech.py+137-6