Fix double-tap fullscreen gesture rotating on portrait videos

The fullscreen button routes through a portrait-video check (toggling
the details panel instead of rotating), but the double-tap gesture
called onToggleFullscreen directly and always rotated to landscape.
Extract the shared decision into PlayerControlsActions.performFullscreenTap()
and use it from both the button and the tap gesture handler.
This commit is contained in:
Arkadiusz Fal
2026-08-03 19:36:49 +02:00
parent 01cf9c953d
commit b0f573be82
3 changed files with 24 additions and 24 deletions

View File

@@ -1220,8 +1220,8 @@ struct PlayerControlsView: View {
}
case .toggleFullscreen:
// Execute immediately
onToggleFullscreen?()
// Execute immediately, using the same decision logic as the fullscreen button
controlsActions.performFullscreenTap()
case .togglePiP:
// Execute immediately