Skip to content

fix: preserve webtoon reload anchor#696

Merged
everpcpc merged 1 commit intomainfrom
codex/fix-webtoon-reload-anchor
Mar 26, 2026
Merged

fix: preserve webtoon reload anchor#696
everpcpc merged 1 commit intomainfrom
codex/fix-webtoon-reload-anchor

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

In Webtoon mode, preloading the next segment near the end of a chapter can trigger a deferred collection reload after the reader has already advanced to a newer current page. The reload then restores the old scroll offset against the newer page ID, which causes an intermittent jump.

Approach

Keep the deferred reload anchored to the exact page whose offset was captured, instead of recomputing the anchor from the live currentReaderPage at reload time. Apply the same correction to both iOS and macOS Webtoon readers so the segment-append path behaves consistently.

Scope

  • Update deferred reload restoration in the iOS Webtoon reader
  • Apply the same anchor preservation logic in the macOS Webtoon reader

Validation

  • make build-ios
  • make build-macos

Keep deferred Webtoon reloads anchored to the page whose offset was captured so segment preloading does not restore scroll position against a newer current page.

Apply the same fix to iOS and macOS Webtoon readers to eliminate the intermittent jump when the next chapter is appended near the end of a segment.
@everpcpc everpcpc merged commit f1f89cb into main Mar 26, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-webtoon-reload-anchor branch March 26, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant