Skip to content

Commit

Permalink
Merge pull request #37270 from software-mansion-labs/@Skalakid/fix-re…
Browse files Browse the repository at this point in the history
…turning-to-previous-thread

Fix app returns to previous thread when scrubbing video in thread
  • Loading branch information
iwiznia authored Mar 4, 2024
2 parents a23caa4 + 283981c commit 5a6d2e5
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 @@ -174,7 +174,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 @@ -246,7 +251,7 @@ function BaseVideoPlayer({
</View>
)}
</Hoverable>
</View>
</PressableWithoutFeedback>
<VideoPopoverMenu
isPopoverVisible={isPopoverVisible}
hidePopover={hidePopoverMenu}
Expand Down

0 comments on commit 5a6d2e5

Please sign in to comment.