@michaelyagi/shoji 0.1.0-beta.17 → 0.1.0-beta.18

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.
@@ -578,7 +578,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
578
578
  const targetRatio = targetRect.width / targetRect.height;
579
579
  const ratioOfRatios = Math.max(originRatio, targetRatio) / Math.min(originRatio, targetRatio);
580
580
  const isMismatch = direction === "out" && ratioOfRatios > ASPECT_MISMATCH_THRESHOLD;
581
- const transform = isMismatch ? transformBetweenStretch(pivotRect, targetRect, originRect) : transformBetween(pivotRect, targetRect, originRect);
581
+ const transform = direction === "out" ? transformBetweenStretch(pivotRect, targetRect, originRect) : transformBetween(pivotRect, targetRect, originRect);
582
582
  return isMismatch ? { kind: "fade", transform } : { kind: "zoom", transform };
583
583
  }
584
584
  const FADE_IN_TRANSITION = "transform var(--shoji-duration) var(--shoji-easing), opacity var(--shoji-fade-duration, 120ms) var(--shoji-easing)";