fix: compound rotation

This commit is contained in:
httpjamesm 2023-10-15 12:41:51 -04:00
parent 1062429645
commit 0847b8a955
No known key found for this signature in database

View file

@ -300,8 +300,8 @@ const ImageEditorOverlay = (props: IProps) => {
// image.src = fileURL; // image.src = fileURL;
image.src = canvas.toDataURL(); image.src = canvas.toDataURL();
setCurrentRotationAngle(currentRotationAngle + angle); // setCurrentRotationAngle(currentRotationAngle + angle);
angle = currentRotationAngle + angle; // angle = currentRotationAngle + angle;
console.log(angle); console.log(angle);