Skip to content

Commit

Permalink
fix: prevent accidental pressing of buttons in overlay header when th…
Browse files Browse the repository at this point in the history
…e overlay is not visible (#724)

* fix: prevent accidental pressing of buttons in header when the overlay is not visible

* fix: prevent accidental pressing of bottom actions in overlay (fullscreen, progress bar) when the overlay is not visible
  • Loading branch information
lpezzolla authored Sep 27, 2022
1 parent 19f3f50 commit 5f37320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ const VideoPlayer = (tempProps: Props) => {
/>

<Animated.View
pointerEvents={controlsState === ControlStates.Visible ? 'auto' : 'none'}
style={[
styles.topInfoWrapper,
{
Expand Down Expand Up @@ -303,7 +304,8 @@ const VideoPlayer = (tempProps: Props) => {
</TouchableWithoutFeedback>

<Animated.View
style={[
pointerEvents={controlsState === ControlStates.Visible ? 'auto' : 'none'}
style={[
styles.bottomInfoWrapper,
{
opacity: controlsOpacity,
Expand Down

0 comments on commit 5f37320

Please sign in to comment.