Skip to content

fix: animate epub scrolled tap navigation#689

Merged
everpcpc merged 1 commit intomainfrom
codex/fix-epub-scrolled-tap-animation
Mar 24, 2026
Merged

fix: animate epub scrolled tap navigation#689
everpcpc merged 1 commit intomainfrom
codex/fix-epub-scrolled-tap-animation

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

The EPUB scrolled reader no longer showed a visible scroll animation when tap navigation advanced or rewound the document. The tap path requested smooth scrolling, but then immediately forced the final scroll position, so the transition looked like an instant jump.

Approach

Use an explicit frame-driven scroll animation for scrolled EPUB navigation on both iOS and macOS, and wire it to the existing tap page transition duration setting so tap-driven movement behaves consistently with the rest of the reader.

Scope

  • Pass tap transition duration into the scrolled EPUB reader implementations
  • Replace the immediate scrollTop override with cancellable animated scrolling logic
  • Include the formatter changes produced in the touched EPUB and settings files

Validation

  • make format
  • make build-ios
  • make build-macos

Restore smooth tap navigation in the EPUB scrolled reader by replacing the immediate scrollTop jump with an explicit frame-driven scroll animation that honors the configured tap page transition duration.

Also include the related formatter output in the touched EPUB reader and settings files so the branch stays consistent with the repository formatting pass used during validation.
@everpcpc everpcpc merged commit 85b33f5 into main Mar 24, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-epub-scrolled-tap-animation branch March 24, 2026 05:11
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