From 283981c4776e557e4099e1ce0e3a34479d2594a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Tue, 27 Feb 2024 11:31:46 +0100 Subject: [PATCH] Fix returning to previous thread when clicking on the video player --- src/components/VideoPlayer/BaseVideoPlayer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.js b/src/components/VideoPlayer/BaseVideoPlayer.js index df79c7ef18da..fe9da14cf34e 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.js +++ b/src/components/VideoPlayer/BaseVideoPlayer.js @@ -169,7 +169,12 @@ function BaseVideoPlayer({ return ( <> - + {/* We need to wrap the video component in a component that will catch unhandled pointer events. Otherwise, these + events will bubble up the tree, and it will cause unexpected press behavior. */} + {(isHovered) => ( @@ -241,7 +246,7 @@ function BaseVideoPlayer({ )} - +