Closed ckrempp91 closed 4 years ago
Approve this.
Will send a PR regarding this issue in a few days.
I'm running into this using 2.2.9 in a UWP app targeting the Anniversary Update SDK in case that matters. Settting AutoRotate = false doesn't lock the orientation to scan a vertical barcode. I can still scan by setting TryHarder and TryInverted to true but it would be ideal to lock the orientation. Since the issue is still open , I assume no PR was submitted. @bkaankose - were you still planning to do this ? Thank you.
Thanks for reporting this issue! Unforunately it took me way too long to respond ðŸ˜. Sorry, I apologize! Recently the source code for this project was completely refactored to modernize it. Many PR's were included in this effort, and many bugs were hopefully fixed. Please try out the latest 3.x series of NuGet packages (currently in prerelease). To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate. If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible. Thank you for your patience and understanding! Happy scanning!
In our app we explicitly set the AutoRotate to false to force the orientation to be locked on the current orientation, which works correctly in Android and iOS, but on UWP it still performs the rotation. Here is our code that we use for the scanner:
We are using Xamarin.Forms 2.3.2.127
I am guessing that this issue occurs because on the ZXingScannerControl, for UWP, the control goes without a check of the
AutoRotate
property.