Skip to content

Add resistance and stable feedback to PDF wheel page turns - #35

Merged
Eoic merged 2 commits into
developmentfrom
fix/34-pdf-wheel-resistance
Nov 24, 2026
Merged

Eoic merged 2 commits into
developmentfrom
fix/34-pdf-wheel-resistance

Conversation

@Eoic

@Eoic Eoic commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Paginated PDFs previously turned on even a one-pixel wheel movement, and touchpad momentum could move the newly opened page. This change accumulates deliberate scroll distance, shows stable resistance feedback between samples, and consumes the post-turn momentum tail while allowing fresh input to resume promptly.

The indicator uses contrasting theme colors and the actual heights of visible reader controls, keeping it clear of the toolbar and footer without resizing the PDF. PDF-backed comic archives inherit the same behavior; text-format wheel behavior remains unchanged.

Closes #34. Contributes to FR-3_1 (PapyrusReader/docs#25) and FR-3_2 (PapyrusReader/docs#26).

Validation:

  • Reader/example formatting and analysis passed.
  • Reader tests: 340 passed, 7 existing optional skips; example tests: 2 passed.
  • Release example web build passed.
  • Chromium PDF regressions passed at 800px and 1440px, including a 4× CPU-throttled run: zoomed boundary resistance, inertia suppression, mouse/touch swipes, retained zoom, and text selection.
  • The inertia browser check captures starting geometry in the wheel handler so locator polling cannot insert an idle gap between the stroke and its tail; failures include event timing and geometry diagnostics.
  • Full Chromium smoke/format suite passed, including EPUB, MOBI, AZW3, TXT, PDF, CBZ, and three CBR fixtures.
  • Rendered phone/light and desktop/dark checks confirmed the indicator clears visible controls; widget coverage also checks scaled text and custom toolbar resizing.

Browser momentum detection is heuristic because wheel events do not expose momentum phases. Synthetic input does not establish compatibility with every physical touchpad. No client dependency pin or recorded workspace submodule update is included.

Copilot AI balanced review requested due to automatic review settings November 22, 2026 23:01

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T23:03:23.247624Z 20ee338 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Eoic
Eoic merged commit 9b6edfc into development Nov 24, 2026
4 checks passed
@Eoic
Eoic deleted the fix/34-pdf-wheel-resistance branch November 24, 2026 22:30
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.

Add deliberate PDF wheel page turns with visible resistance

2 participants