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