Fix mistake

This commit is contained in:
Connor Yoh 2025-04-15 17:23:25 +01:00
parent 507134697c
commit 2c60a74b89

View File

@ -544,8 +544,10 @@ const DraggableUtils = {
angle: rotateAngle, // Store rotation
};
const pageRotation = page.getRotation();
// Normalize page rotation angle
let normalizedAngle = page.getRotation() % 360;
let normalizedAngle = pageRotation.angle % 360;
if (normalizedAngle < 0) {
normalizedAngle += 360;
}