Skip to content

Fix opening the initial location of a PDF when preferences are submitted early - #941

Merged
mickael-menu merged 3 commits into
developfrom
fix/pdf-progression
Nov 16, 2026
Merged

mickael-menu merged 3 commits into
developfrom
fix/pdf-progression

Conversation

@mickael-menu

Copy link
Copy Markdown
Member

Fixed

Navigator

  • Fixed PDFNavigatorViewController opening on the first page instead of its initial location, when the preferences are submitted while the PDF document is loading.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An early preference-driven reset can open the PDF on page 1 before positions load, preventing the intended position- or progression-based initial location from being restored.

1 open issue
What changed in this PR

This PR updates the PDF navigator to preserve its intended initial location when preferences are submitted during document loading.

Changes:

  • Track a pending location across PDF view resets.
  • Ignore document loads targeting a replaced PDF view.
  • Document the fix in the changelog.
File Description
Sources/​Navigator/​PDF/​PDFNavigatorViewController.swift Preserve pending locations and reject obsolete document loads.
CHANGELOG.md Describe the initial-location fix.

Review effort: Balanced

@mickael-menu
mickael-menu merged commit 412deaf into develop Nov 16, 2026
5 checks passed
@mickael-menu
mickael-menu deleted the fix/pdf-progression branch November 16, 2026 13:57
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.

2 participants