From 17774e5fce7c2419d070f81aae586093c6f72ad0 Mon Sep 17 00:00:00 2001 From: Samuel Newman <10959775+mozzius@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:36:24 +0200 Subject: [PATCH] stop propagation of videoplayer click --- src/view/com/util/post-embeds/VideoWebControls.web.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/com/util/post-embeds/VideoWebControls.web.tsx b/src/view/com/util/post-embeds/VideoWebControls.web.tsx index 632b108e9d..bd4dfc328f 100644 --- a/src/view/com/util/post-embeds/VideoWebControls.web.tsx +++ b/src/view/com/util/post-embeds/VideoWebControls.web.tsx @@ -115,7 +115,10 @@ export function Controls({ display: 'flex', flexDirection: 'column', }} - onClick={() => setInteractingViaKeypress(false)} + onClick={evt => { + evt.stopPropagation() + setInteractingViaKeypress(false) + }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave} onFocus={onFocus}