mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
fix double rotation
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
@@ -568,7 +568,7 @@ final class PlayerModel: ObservableObject {
|
||||
if lockPortraitWhenBrowsing {
|
||||
Orientation.lockOrientation(.portrait, andRotateTo: .portrait)
|
||||
} else {
|
||||
Orientation.lockOrientation(.allButUpsideDown)
|
||||
Orientation.lockOrientation(.all)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -822,7 +822,7 @@ final class PlayerModel: ObservableObject {
|
||||
} else {
|
||||
isOrientationLocked = false
|
||||
lockedOrientation = nil
|
||||
Orientation.lockOrientation(.allButUpsideDown)
|
||||
Orientation.lockOrientation(.all)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1167,7 +1167,7 @@ final class PlayerModel: ObservableObject {
|
||||
Orientation.lockOrientation(
|
||||
isOrientationLocked
|
||||
? (lockOrientation == .landscapeRight ? .landscapeRight : .landscapeLeft)
|
||||
: .landscape,
|
||||
: .all,
|
||||
andRotateTo: orientation
|
||||
)
|
||||
}
|
||||
@@ -1181,7 +1181,7 @@ final class PlayerModel: ObservableObject {
|
||||
lockedOrientation = UIInterfaceOrientationMask.portrait
|
||||
}
|
||||
let rotationOrientation = lockPortraitWhenBrowsing ? UIInterfaceOrientation.portrait : nil
|
||||
Orientation.lockOrientation(lockPortraitWhenBrowsing ? .portrait : .allButUpsideDown, andRotateTo: rotationOrientation)
|
||||
Orientation.lockOrientation(lockPortraitWhenBrowsing ? .portrait : .all, andRotateTo: rotationOrientation)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user