@esotericsoftware/spine-canvas 4.2.28 → 4.2.29

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.
@@ -6194,8 +6194,8 @@ var spine = (() => {
6194
6194
  let rotationIK = -bone.ashearX - bone.arotation, tx = 0, ty = 0;
6195
6195
  switch (bone.data.transformMode) {
6196
6196
  case 1 /* OnlyTranslation */:
6197
- tx = targetX - bone.worldX;
6198
- ty = targetY - bone.worldY;
6197
+ tx = (targetX - bone.worldX) * MathUtils.signum(bone.skeleton.scaleX);
6198
+ ty = (targetY - bone.worldY) * MathUtils.signum(bone.skeleton.scaleY);
6199
6199
  break;
6200
6200
  case 2 /* NoRotationOrReflection */:
6201
6201
  let s = Math.abs(pa * pd - pb * pc) / Math.max(1e-4, pa * pa + pc * pc);