From ab571b8111676914dcc76422bd81e38ebbcf7ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Fridmansk=C3=BD?= Date: Sat, 19 Oct 2024 11:55:29 +0200 Subject: [PATCH] fix: let video paused when not focused --- src/components/Modal/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 06c18fd..db525ff 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -265,6 +265,7 @@ const StoryModal = forwardRef( ( { ctx.x = x.value; ctx.userId = userId.value; + paused.value = true; }, onActive: ( e, ctx ) => { @@ -340,6 +341,7 @@ const StoryModal = forwardRef( ( { ctx.vertical = false; ctx.userId = undefined; hideElements.value = false; + paused.value = false; }, } );