We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e24fdf commit 49b9894Copy full SHA for 49b9894
dotcom-rendering/src/components/LoopVideoProgressBar.tsx
@@ -53,7 +53,10 @@ export const LoopVideoProgressBar = ({
53
*/
54
const adjustedDuration = Math.max(duration - 0.25, 0.1);
55
56
- const progressPercentage = (currentTime * 100) / adjustedDuration;
+ const progressPercentage = Math.min(
57
+ (currentTime * 100) / adjustedDuration,
58
+ 100,
59
+ );
60
if (Number.isNaN(progressPercentage)) {
61
return null;
62
}
0 commit comments