{"push_id":694284531,"size":1,"distinct_size":1,"ref":"refs/heads/limit-internal-scale-values-precision","head":"45e799a11178a1c0ad254d4e6add143541a57084","before":"16155f725c9b09e485c63638eab7634beacdedf7","commits":[{"sha":"45e799a11178a1c0ad254d4e6add143541a57084","author":{"email":"948da68dabc99974f43ccafff8947d7478f569d4@gmail.com","name":"Jonas Jenwald"},"message":"Prevent re-rendering of pages because of rounding errors when computing the scale value\n\nCurrently if the zoom level is reset multiple times in a row, i.e. by pressing <kbd>Ctrl</kbd>+<kbd>0</kbd>, the pages can be re-rendered each time even though their size shouldn't change. Whether this happens can depend on the size of the viewer, but documents with pages in landscape mode seem to be very susceptible to this. (An example is: https://wiki.mozilla.org/images/5/55/MobileOpportunity.pdf.)\nThis can also effect documents with pages in portrait mode, when they are displayed in Presentation Mode.\n\nThe reason for this unnecessary re-rendering is that due to limited numerical precision, the new scale value may change in *only* the last decimal place.","distinct":true,"url":"https://api.github.com/repos/Snuffleupagus/pdf.js/commits/45e799a11178a1c0ad254d4e6add143541a57084"}]}