From 0d19365cca9f9e3f403a588b2d42c863944ee892 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Wed, 3 Jun 2026 19:23:32 +0200 Subject: [PATCH] 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) --- containers/novela/changelog.py | 14 ++++++++++++++ containers/novela/templates/reader.html | 5 +++-- containers/novela/version.py | 2 +- docs/changelog-develop.md | 8 ++++++++ docs/changelog.md | 8 ++++++++ 5 files changed, 34 insertions(+), 3 deletions(-) diff --git a/containers/novela/changelog.py b/containers/novela/changelog.py index 57ef5b5..5177406 100644 --- a/containers/novela/changelog.py +++ b/containers/novela/changelog.py @@ -3,6 +3,20 @@ Changelog data for Novela """ 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", "date": "2026-06-01", diff --git a/containers/novela/templates/reader.html b/containers/novela/templates/reader.html index 16ab208..03d7018 100644 --- a/containers/novela/templates/reader.html +++ b/containers/novela/templates/reader.html @@ -701,8 +701,9 @@ // ── Keyboard navigation ──────────────────────────────────────── document.addEventListener('keydown', (e) => { - if (e.key === 'ArrowRight' || e.key === 'PageDown') { e.preventDefault(); navigate(1); } - if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); navigate(-1); } + // Arrow keys switch chapters; Page Up/Down are left to the browser for in-page scrolling. + if (e.key === 'ArrowRight') { e.preventDefault(); navigate(1); } + if (e.key === 'ArrowLeft') { e.preventDefault(); navigate(-1); } if (e.key === 'Escape') { closeSettings(); closeBookmarkModal(); } }); diff --git a/containers/novela/version.py b/containers/novela/version.py index 4253908..ab44aca 100644 --- a/containers/novela/version.py +++ b/containers/novela/version.py @@ -10,7 +10,7 @@ from __future__ import annotations from changelog import CHANGELOG -BUILD = 1 +BUILD = 0 def _release_version() -> str: diff --git a/docs/changelog-develop.md b/docs/changelog-develop.md index ab51018..b8fbaad 100644 --- a/docs/changelog-develop.md +++ b/docs/changelog-develop.md @@ -1,5 +1,13 @@ # 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 ### Added diff --git a/docs/changelog.md b/docs/changelog.md index 2622168..92d9b60 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,13 @@ # 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 ### New features