Skip to content

Commit

Permalink
Merge pull request #126 from birdwingo/fix/video-is-playing-on-backgr…
Browse files Browse the repository at this point in the history
…ound

fix: let video paused when not focused
  • Loading branch information
LukasFridmansky authored Oct 21, 2024
2 parents 6c30fea + ab571b8 commit be72128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {

ctx.x = x.value;
ctx.userId = userId.value;
paused.value = true;

},
onActive: ( e, ctx ) => {
Expand Down Expand Up @@ -340,6 +341,7 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {
ctx.vertical = false;
ctx.userId = undefined;
hideElements.value = false;
paused.value = false;

},
} );
Expand Down

0 comments on commit be72128

Please sign in to comment.