Skip to content

[Bug]: Combination of defaultZoomValue: page-height and scrollModeOnLoad: 3 = unable to scroll past page with keyboard #21974

Description

@51cent

Attach (recommended) or Link to PDF file

Any multiple pages long PDF file will do.

Web browser and its version

Firefox 156.0 / Thunderbird 156.0 / Firefox 140.13.0esr

Operating system and its version

Windows 11 25H2

PDF.js version

(Sorry but: How can I find it?)

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Set the following values in user.js:
  • user_pref("pdfjs.defaultZoomValue", "page-height");
  • user_pref("pdfjs.scrollModeOnLoad", 3); // 3 = page
  • user_pref("pdfjs.viewOnLoad", 1); // Just to make sure the settings above are applied
  1. Open any multiple site long PDF file
  2. Try to scroll with the arrow or page up/down keys

What is the expected behavior?

The arrow or page up/down keys scroll to the next page of the PDF.

What went wrong?

PDF.js stays on the displayed page.

Link to a viewer

No response

Additional context

Using the up/down buttons in the toolbar, it is possible to scroll between pages.

When setting the zoom to any other setting and then resetting it to page-height, scrolling with those keyboard keys becomes possible.
So the issue only occurs when starting with the mentioned user.js settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions