refboard: fix flipped image crop coordinate mapping

This commit is contained in:
Hiren Kangad
2026-03-13 13:03:37 +05:30
parent cd9db8816c
commit 407fa82915
+2 -2
View File
@@ -221,8 +221,8 @@ function getImageViewNormalizedFromLocal(
const normX = data.w === 0 ? 0 : sourceX / data.w;
const normY = data.h === 0 ? 0 : sourceY / data.h;
return {
x: data.flipX ? 1 - normX : normX,
y: data.flipY ? 1 - normY : normY,
x: normX,
y: normY,
};
}