Skip to content

Commit

Permalink
Fix returning to previous thread when clicking on the video player
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Feb 27, 2024
1 parent 9bfe961 commit 283981c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/VideoPlayer/BaseVideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ function BaseVideoPlayer({

return (
<>
<View style={style}>
{/* 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. */}
<PressableWithoutFeedback
accessibilityRole="button"
style={[styles.cursorDefault, style]}
>
<Hoverable>
{(isHovered) => (
<View style={[styles.w100, styles.h100]}>
Expand Down Expand Up @@ -241,7 +246,7 @@ function BaseVideoPlayer({
</View>
)}
</Hoverable>
</View>
</PressableWithoutFeedback>
<VideoPopoverMenu
isPopoverVisible={isPopoverVisible}
hidePopover={hidePopoverMenu}
Expand Down

0 comments on commit 283981c

Please sign in to comment.