mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixes Viewport rotation above 360
This commit is contained in:
parent
be5a86cd10
commit
5edd6d253f
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
|
|||
var centerX = (viewBox[2] + viewBox[0]) / 2;
|
||||
var centerY = (viewBox[3] + viewBox[1]) / 2;
|
||||
var rotateA, rotateB, rotateC, rotateD;
|
||||
switch (rotate) {
|
||||
switch (rotate % 360) {
|
||||
case -180:
|
||||
case 180:
|
||||
rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue