Skip to content
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

Fix for iOS camera orientation issue #43

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

bhuvan94
Copy link

@bhuvan94 bhuvan94 commented Sep 7, 2022

Fix for iOS camera orientation issue (#40)

@bhuvan94 bhuvan94 changed the title Fix ios camera orientation Fix for iOS camera orientation issue Sep 7, 2022
@Redth Redth merged commit aa7ca80 into Redth:main Oct 18, 2022
@bstadick
Copy link
Contributor

bstadick commented May 8, 2024

One issue I found with this fix is that it updates appropriately for the device orientation but doesn't account for the application orientation which could be different. E.g. The device is held in portrait when the scan starts but the application only supports landscape will lock the camera view in portrait thus being offset by 90 degrees.

It also doesn't re-apply the layout when the device orientation changes. E.g. Change from landscape left to landscape right keeps the camera view in landscape left, thus resulting in the camera being upside down.

I've created pull request #186 with help from a coworker to handle these two scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants