@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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.22
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -16401,7 +16401,7 @@ var getFramePosition = (frameIndex, framesPerRow, width, height, scaleFactor, fr
|
|
|
16401
16401
|
const imageY = -height * row * scaleFactor;
|
|
16402
16402
|
const rows = Math.ceil(frameCount / framesPerRow);
|
|
16403
16403
|
const frameHeightInStoryboard = height / rows;
|
|
16404
|
-
const verticalCenterOffset = (targetHeight - frameHeightInStoryboard) / 2;
|
|
16404
|
+
const verticalCenterOffset = height > width ? (targetHeight - frameHeightInStoryboard) / 2 : 0;
|
|
16405
16405
|
const adjustedY = imageY - verticalCenterOffset;
|
|
16406
16406
|
return `${imageX}px ${adjustedY}px`;
|
|
16407
16407
|
};
|