mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-24 00:52:50 +08:00
correct orientation naming
This commit is contained in:
parent
4f36055beb
commit
dda55807c7
@ -76,13 +76,13 @@ function orientationChange() {
|
|||||||
orientation = 'portrait-primary';
|
orientation = 'portrait-primary';
|
||||||
break;
|
break;
|
||||||
case 90:
|
case 90:
|
||||||
orientation = 'landscape-secondary';
|
orientation = 'landscape-primary';
|
||||||
break;
|
break;
|
||||||
case 180:
|
case 180:
|
||||||
orientation = 'portrait-secondary';
|
orientation = 'portrait-secondary';
|
||||||
break;
|
break;
|
||||||
case -90:
|
case -90:
|
||||||
orientation = 'landscape-primary';
|
orientation = 'landscape-secondary';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
orientation = 'unknown';
|
orientation = 'unknown';
|
||||||
|
Loading…
Reference in New Issue
Block a user