mangayomi-mirror/lib
NBA2K1 1735c80014 Fix page jumps
fix for the "jump back" bug that occurred when scrolling up in vertical continuous and webtoon reader modes.

- `ChapterPreloadManager` was maintaining its own `_currentIndex`.
- When prepending previous chapter pages, the index was being incremented
  twice (once in the manager + once in `_handlePrevChapterPrepended`).
- This caused `itemScrollController.jumpTo()` to overshoot, resulting in
  a visible jump forward (perceived as "jump back" while trying to scroll up).

- Removed all index management (`_currentIndex`, getter, setter, startIndex)
  from `ChapterPreloadManager` and `ReaderMemoryManagement`.
- `ChapterPreloadManager` is now a pure data container (only manages `_pages`).
- `_handlePrevChapterPrepended` now captures the **current visible top index**
  *before* prepending and adjusts the scroll position only once.
- `_readProgressListener` is now the single source of truth for `_currentIndex`.
- Removed stale `initialScrollIndex` logic from preload initialization.
2026-04-12 00:02:50 +02:00
..
eval refactor 2026-04-07 14:43:39 +01:00
ffi dart format 2025-05-30 17:43:42 +01:00
l10n fix spelling 2026-04-09 23:30:04 +02:00
models feat: add Novel TTS #482 #626 2026-04-09 12:17:17 +01:00
modules Fix page jumps 2026-04-12 00:02:50 +02:00
providers integrated ApkBridge for desktop 2026-04-04 23:05:51 +02:00
router added mass migration 2026-04-06 01:49:08 +02:00
services feat #682 option to split chapter whe importing local epub 2026-04-07 11:55:42 +01:00
src/rust Fix #643 2026-01-26 17:28:25 +01:00
utils feat #682 option to split chapter whe importing local epub 2026-04-07 11:55:42 +01:00
main.dart Workaround for libepoxy error when closing app 2026-04-06 17:51:08 +02:00