@wistia/ui 0.14.21 → 0.14.22

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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.21
3
+ * @license @wistia/ui v0.14.22
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -16279,7 +16279,7 @@ var getFramePosition = (frameIndex, framesPerRow, width, height, scaleFactor, fr
16279
16279
  const imageY = -height * row * scaleFactor;
16280
16280
  const rows = Math.ceil(frameCount / framesPerRow);
16281
16281
  const frameHeightInStoryboard = height / rows;
16282
- const verticalCenterOffset = (targetHeight - frameHeightInStoryboard) / 2;
16282
+ const verticalCenterOffset = height > width ? (targetHeight - frameHeightInStoryboard) / 2 : 0;
16283
16283
  const adjustedY = imageY - verticalCenterOffset;
16284
16284
  return `${imageX}px ${adjustedY}px`;
16285
16285
  };