@esotericsoftware/spine-webgl 4.1.47 → 4.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6080,8 +6080,8 @@ var spine = (() => {
6080
6080
  let rotationIK = -bone.ashearX - bone.arotation, tx = 0, ty = 0;
6081
6081
  switch (bone.data.transformMode) {
6082
6082
  case 1 /* OnlyTranslation */:
6083
- tx = targetX - bone.worldX;
6084
- ty = targetY - bone.worldY;
6083
+ tx = (targetX - bone.worldX) * MathUtils.signum(bone.skeleton.scaleX);
6084
+ ty = (targetY - bone.worldY) * MathUtils.signum(bone.skeleton.scaleY);
6085
6085
  break;
6086
6086
  case 2 /* NoRotationOrReflection */:
6087
6087
  let s = Math.abs(pa * pd - pb * pc) / Math.max(1e-4, pa * pa + pc * pc);