readest/packages
Huang Xin b1bafcaf4d
fix(reader): keep the cursor visible while text is selected (#5557)
Autohide blanked the pointer one second after the last mousemove regardless of
what the reader was doing, so it hid the cursor in the middle of a selection:
during a paused selection drag, and after a double-click word select, which
fires no mousemove at all and simply let the already armed timer run.

foliate-js now skips hiding while the element's document holds a non-collapsed
selection. The guard sits in hide() rather than at arm time, so it covers both
a selection made after the timer was armed and the timer re-armed while a
selection stands. ownerDocument resolves to the right scope for either
instance: the top document for the host element, and the section's iframe
document for the per-section clone, which is where reader selections live.

Autohide resumes as soon as the selection collapses, which any click does, and
the next mousemove re-arms the timer, so there is no stuck-visible state. The
lookup popups deliberately keep the selection live while open, so the cursor
now also stays visible for as long as the reader is aiming at one.

Bumps foliate-js to readest/foliate-js#68.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 16:34:43 +02:00
..
foliate-js@f65836f77e fix(reader): keep the cursor visible while text is selected (#5557) 2026-08-07 16:34:43 +02:00
js-mdict@d01bf62af8 feat(dict): faster MDict/StarDict import + lazy lookup; raw .dict; UX (#4334) 2026-05-28 07:48:16 +02:00
qcms@fc23a407f1 chore(fdroid): get rid of wasm binaries in fdroid build (#3677) 2026-03-29 18:31:46 +02:00
simplecc-wasm@5e5b56f5b8 chore(fdroid): get rid of wasm binaries in fdroid build (#3677) 2026-03-29 18:31:46 +02:00
swift-rs feat(reader): slide and page curl turn animations (#555) (#4940) 2026-07-05 20:49:57 +02:00
tao@da30a3b9df feat(ios): CarPlay support and native TTS playout with Now Playing integration (#5085) 2026-07-13 10:53:31 +02:00
tauri@6914700e04 feat(ios): CarPlay support and native TTS playout with Now Playing integration (#5085) 2026-07-13 10:53:31 +02:00
tauri-plugins@4350ca652d chore: bump tauri plugins (#4373) 2026-05-30 22:18:41 +02:00