-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@capacitor/screen-orientation): Orientation 'landscape' lock uses current held landscape #2040
base: 5.x
Are you sure you want to change the base?
feat(@capacitor/screen-orientation): Orientation 'landscape' lock uses current held landscape #2040
Conversation
@codepip55 This has conflicts now that the code in #2022 has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment: Merge conflicts accidentally overwrote changes that I made as a part of #2022
I think I've fixed everything now, let me know if I missed something :) |
Is there a timeline for when we can expect this to be merged? |
The linting warnings from CI are unrelated to the changes made in this PR. |
Any news on this pull request? |
Any updates on this PR? |
Any updates on this PR @brian-weasner @IT-MikeS ? it's been lying around for a long time now and many people are waiting for it |
Hi @brian-weasner and @IT-MikeS, would it be possible to merge this? |
Thanks for the @, as this fell off of my radar after my bugfix ticket got merged. @ericmulder , @jansgescheit, This issue just came about around the same time I was fixing #2022. Because of that I've been communicating with this ticket to be sure that it's changes wouldn't overwrite the changes I made. Since #2022 has been merged into 5.x branch and subsequently into Capacitor v5 and v6, although there is no mention of it in the CHANGELOG.md in either v5 or v6 branches, there is a workaround that can be used. Simply get the current orientation, check to see if it contains the word "landscape" and if so lock it to that orientation. The following code has not been tested: const currentOrientation = await ScreenOrientation.orientation();
if (currentOrientation.includes('landscape')) {
await ScreenOrientation.lock({orientation: currentOrientation]);
} I still agree that this should be merged because this brings about nice changes. @IT-MikeS Is there anything blocking this from getting merged? |
Fixes #2039