mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-06 18:30:57 +00:00
Fix mistake
This commit is contained in:
parent
507134697c
commit
2c60a74b89
@ -544,8 +544,10 @@ const DraggableUtils = {
|
|||||||
angle: rotateAngle, // Store rotation
|
angle: rotateAngle, // Store rotation
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const pageRotation = page.getRotation();
|
||||||
|
|
||||||
// Normalize page rotation angle
|
// Normalize page rotation angle
|
||||||
let normalizedAngle = page.getRotation() % 360;
|
let normalizedAngle = pageRotation.angle % 360;
|
||||||
if (normalizedAngle < 0) {
|
if (normalizedAngle < 0) {
|
||||||
normalizedAngle += 360;
|
normalizedAngle += 360;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user