From 8d4a6e5e3121a47309cef60a1846775fa10f0bb3 Mon Sep 17 00:00:00 2001 From: Wiktor Gut Date: Fri, 20 Feb 2026 15:40:31 +0100 Subject: [PATCH 1/2] conditional pointer events fix --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 4d27bd8089ca6..4ab210fc25f61 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -29,6 +29,7 @@ import useHandleNativeVideoControls from './useHandleNativeVideoControls'; import * as VideoUtils from './utils'; import VideoErrorIndicator from './VideoErrorIndicator'; import VideoPlayerControls from './VideoPlayerControls'; +import {set} from 'lodash'; function BaseVideoPlayer({ url, @@ -56,6 +57,7 @@ function BaseVideoPlayer({ const {currentlyPlayingURL, sharedElement, originalParent, currentVideoPlayerRef, currentVideoViewRef, mountedVideoPlayersRef, playerStatus} = usePlaybackStateContext(); const {pauseVideo, playVideo, replayVideo, shareVideoPlayerElements, updateCurrentURLAndReportID, setCurrentlyPlayingURL, updatePlayerStatus} = usePlaybackActionsContext(); const {isFullScreenRef} = useFullScreenContext(); + const [pointerEventsDisabled, setPointerEventsDisabled] = useState(true); const isOffline = useNetwork().isOffline; const [duration, setDuration] = useState(videoDuration); @@ -476,7 +478,7 @@ function BaseVideoPlayer({ } videoPlayerElementParentRef.current = el; }} - pointerEvents="none" + pointerEvents={pointerEventsDisabled ? 'none' : 'auto'} > { isFullScreenRef.current = false; @@ -507,6 +510,7 @@ function BaseVideoPlayer({ // Sync volume updates in full screen mode after leaving it updateVolume(videoPlayerRef.current.muted ? 0 : videoPlayerRef.current.volume || 1); + setPointerEventsDisabled(true); }} /> From d6b257ddb1bde0be21121f54f280764b1e22b017 Mon Sep 17 00:00:00 2001 From: Wiktor Gut Date: Fri, 20 Feb 2026 15:49:19 +0100 Subject: [PATCH 2/2] bad import --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 4ab210fc25f61..c3091d2b4bf12 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -29,7 +29,6 @@ import useHandleNativeVideoControls from './useHandleNativeVideoControls'; import * as VideoUtils from './utils'; import VideoErrorIndicator from './VideoErrorIndicator'; import VideoPlayerControls from './VideoPlayerControls'; -import {set} from 'lodash'; function BaseVideoPlayer({ url,