mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Fix iOS orientation logic typo (#573)
- This typo results in all roughly face-up still pictures being interpreted as portrait shots.
This commit is contained in:
parent
5ed6b81493
commit
edcd2435de
@ -77,7 +77,7 @@
|
||||
if(acceleration.x <= -0.75) {
|
||||
return UIInterfaceOrientationLandscapeRight;
|
||||
}
|
||||
if(acceleration.y >= -0.75) {
|
||||
if(acceleration.y <= -0.75) {
|
||||
return UIInterfaceOrientationPortrait;
|
||||
}
|
||||
if(acceleration.y >= 0.75) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user