Skip to content

PDF.js jumps to top of page when zooming #1521

@user1113

Description

@user1113

Hello,

I am experiencing an issue with PDF.js.

If I zoom (whether it's with the controls or the +/- keys), the document viewer always jumps to the top of the page. I have to scroll back to the place where I was every time. This is probably not intended, and certainly not desirable.

Test case:

  1. Go to this Example PDF
  2. Zoom to -for example- 200%
  3. Scroll to the bottom of the page
  4. Zoom in or out using the buttons or the +/- keys

  5. Expected result: the viewer zooms in (or out) at the displayed part of the page.
    Actual result: the viewer zooms and jumps to the top of the page.

    I am using PDF Viewer 0.2.537; my user-agent is: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20100101 Firefox/11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions