mirror of
https://github.com/readest/readest.git
synced 2026-08-20 14:34:04 +00:00
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> |
||
|---|---|---|
| .. | ||
| foliate-js@f65836f77e | ||
| js-mdict@d01bf62af8 | ||
| qcms@fc23a407f1 | ||
| simplecc-wasm@5e5b56f5b8 | ||
| swift-rs | ||
| tao@da30a3b9df | ||
| tauri@6914700e04 | ||
| tauri-plugins@4350ca652d | ||