TheWidlarzGroup/react-native-video

[Bug]: pointerEvents is not respected

Open

#3.315 geöffnet am 25. Okt. 2023

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (3.027 Forks)batch import
6.x.xMissing ReproNewer Version AvailablePlatform: AndroidPlatform: WindowsPlatform: iOSV6bugdifficulty: easyfeaturegood first issuehelp wantedpriority: mediumtriaged

Repository-Metriken

Stars
 (7.677 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 3h) (11 gemergte PRs in 30 T)

Beschreibung

What happened?

The pointerEvents prop is not respected by the Video component. When pointerEvents="none" is set, it is not passed through to the rendered View, so pointer/touch events do not pass through to content behind the video.

Expected behaviour

  1. pointerEvents is passed through to the rendered View.
  2. Pointer events go through to content behind the video.

Reproducible sample code

<Video pointerEvents="none" />

Steps to reproduce

  1. Render a Video component with pointerEvents="none".
  2. Place interactive content behind the video.
  3. Observe that the pointerEvents value is not passed through to the underlying View.
  4. Attempt to interact with the content behind the video — interaction is blocked.

Reproduction repository

No response

react-native-video version

6.0.0

react-native version

No response

react-native-nitro-modules version

No response

Platforms

iOS, Android, Windows

OS version

No response

Device

iPhone 14

Architecture

No response

Expo

No response

Last working version

No response

Media / source type

No response

Contributor Guide