From 55d92d5f7b84c95cd6de77774aa431610ae43bb7 Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Fri, 23 Feb 2024 11:41:18 -0800 Subject: [PATCH] Revert "Fix app returns to previous thread when scrubbing video in thread" --- src/components/VideoPlayer/BaseVideoPlayer.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.js b/src/components/VideoPlayer/BaseVideoPlayer.js index 5f63703b462f..df79c7ef18da 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.js +++ b/src/components/VideoPlayer/BaseVideoPlayer.js @@ -168,12 +168,7 @@ function BaseVideoPlayer({ }, [bindFunctions, currentVideoPlayerRef, currentlyPlayingURL, isSmallScreenWidth, originalParent, sharedElement, shouldUseSharedVideoElement, url]); 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) => ( @@ -252,7 +247,7 @@ function BaseVideoPlayer({ hidePopover={hidePopoverMenu} anchorPosition={popoverAnchorPosition} /> - + ); }