mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix rotation of the zoomLayer
(PR 15812 follow-up)
Currently the `zoomLayer` isn't rotated correctly in all cases. To reproduce:
- Load 1522715/wuppertal_2012.pdf
- Let the document render.
- Rotate the document *four* times, such that the original rotation is restored.
The easiest solution, as far as I can tell, is that we always set the `transform` just as we did (for years) prior to the changes in PR 15812.
This commit is contained in:
parent
622465dc20
commit
2c5a2d112c
1 changed files with 1 additions and 4 deletions
|
@ -759,10 +759,7 @@ class PDFPageView {
|
|||
scaleX = height / width;
|
||||
scaleY = width / height;
|
||||
}
|
||||
|
||||
if (absRotation !== 0) {
|
||||
target.style.transform = `rotate(${relativeRotation}deg) scale(${scaleX}, ${scaleY})`;
|
||||
}
|
||||
target.style.transform = `rotate(${relativeRotation}deg) scale(${scaleX}, ${scaleY})`;
|
||||
}
|
||||
|
||||
if (redrawAnnotationLayer && this.annotationLayer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue