Skip to content

Commit 32a3c0b

Browse files
committed
Resume video when it comes back into view
1 parent 9e39bb0 commit 32a3c0b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dotcom-rendering/src/components/LoopVideo.importable.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ export const LoopVideo = ({
5858
if (!vidRef.current) return;
5959

6060
if (isInView) {
61-
// We only autoplay the first time the video comes into view.
62-
if (hasBeenInView) return;
63-
6461
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
6562
setPrefersReducedMotion(true);
6663
return;

0 commit comments

Comments
 (0)