Skip to content

Commit

Permalink
fix: let video paused when not focused
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFridmansky committed Oct 19, 2024
1 parent 6c30fea commit ab571b8
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 ab571b8

Please sign in to comment.