mangayomi-mirror/lib/modules/manga
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
..
archive_reader update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
detail refactor 2026-04-07 14:43:39 +01:00
download feat(reader): add navigation layout options and settings for screen behavior 2026-03-04 16:04:07 +01:00
home update dependencies & update riverpod provider declarations 2026-01-08 14:27:08 +01:00
reader Fix page jumps 2026-04-12 00:02:50 +02:00