Reader: Page Up/Down scroll within page instead of switching chapters

Chapter navigation stays on the arrow keys. Bump to v0.2.14; reset BUILD=0 for release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ivo Oskamp 2026-06-03 19:23:32 +02:00
parent 84d95dc886
commit 0d19365cca
5 changed files with 34 additions and 3 deletions

View File

@ -3,6 +3,20 @@ Changelog data for Novela
""" """
CHANGELOG = [ CHANGELOG = [
{
"version": "v0.2.14",
"date": "2026-06-03",
"summary": "Reader: Page Up / Page Down now scroll within the page instead of switching chapters — chapter navigation stays on the arrow keys.",
"sections": [
{
"title": "Improvements",
"type": "improvement",
"changes": [
"Reader: Page Up and Page Down now scroll within the current page instead of switching chapters. Chapter navigation remains on the Left/Right arrow keys, so accidentally pressing Page Down while reading no longer jumps to the next chapter and loses your place.",
],
},
],
},
{ {
"version": "v0.2.13", "version": "v0.2.13",
"date": "2026-06-01", "date": "2026-06-01",

View File

@ -701,8 +701,9 @@
// ── Keyboard navigation ──────────────────────────────────────── // ── Keyboard navigation ────────────────────────────────────────
document.addEventListener('keydown', (e) => { document.addEventListener('keydown', (e) => {
if (e.key === 'ArrowRight' || e.key === 'PageDown') { e.preventDefault(); navigate(1); } // Arrow keys switch chapters; Page Up/Down are left to the browser for in-page scrolling.
if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); navigate(-1); } if (e.key === 'ArrowRight') { e.preventDefault(); navigate(1); }
if (e.key === 'ArrowLeft') { e.preventDefault(); navigate(-1); }
if (e.key === 'Escape') { closeSettings(); closeBookmarkModal(); } if (e.key === 'Escape') { closeSettings(); closeBookmarkModal(); }
}); });

View File

@ -10,7 +10,7 @@ from __future__ import annotations
from changelog import CHANGELOG from changelog import CHANGELOG
BUILD = 1 BUILD = 0
def _release_version() -> str: def _release_version() -> str:

View File

@ -1,5 +1,13 @@
# Develop Changelog # Develop Changelog
## 2026-06-03 — Reader: Page Up/Down scroll within the page
### Changed
- In the reader, **Page Up / Page Down no longer switch chapters** — they now fall through to the browser's default in-page scrolling. Chapter navigation is still bound to the **arrow keys** (Left/Right). Previously both the arrow keys and the page keys triggered chapter navigation, so accidentally pressing Page Down while reading jumped to the next chapter and lost the reading position.
- `templates/reader.html`: the `keydown` handler now matches only `ArrowRight`/`ArrowLeft` for `navigate(±1)`; `PageDown`/`PageUp` removed from the bindings.
*Released as v0.2.14 on 2026-06-03*
## 2026-06-01 — Full Database Restore: live progress + download-to-local first ## 2026-06-01 — Full Database Restore: live progress + download-to-local first
### Added ### Added

View File

@ -1,5 +1,13 @@
# Changelog # Changelog
## v0.2.14 — 2026-06-03
### Improvements
- Reader: **Page Up** and **Page Down** now scroll within the current page instead of switching chapters. Chapter navigation remains on the **Left / Right arrow keys**, so accidentally pressing Page Down while reading no longer jumps to the next chapter and loses your place.
---
## v0.2.13 — 2026-06-01 ## v0.2.13 — 2026-06-01
### New features ### New features