box / viewer.js

A viewer for documents converted with the Box View API
Apache License 2.0
336 stars 99 forks source link

Zoom Causes Viewer to Page Improperly #209

Open xgibster opened 8 years ago

xgibster commented 8 years ago
  1. I load a document in the viewer.
  2. I scroll to the last page of the document (say page 97)
  3. I fully zoom out on the last page (page 97)
  4. I zoom back in and the viewer pages to page 73.

It appears that the calculateCurrentPage function in crocodoc.viewer.js is improperly calculating the current page.

I can reproduce the problem in your demo app at https://box-view.readme.io/reference.