Performance improvements

This commit is contained in:
Arkadiusz Fal
2022-08-23 23:14:13 +02:00
parent 642354fc8e
commit 9ca905e5c7
5 changed files with 33 additions and 44 deletions

View File

@@ -454,10 +454,9 @@ struct VideoPlayerView: View {
if drag > 60,
player.playingFullScreen
{
player.exitFullScreen()
player.exitFullScreen(showControls: false)
if Defaults[.rotateToPortraitOnExitFullScreen] {
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: .portrait)
playerControls.show()
}
}
}