-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Lock the orientation on Android and iOS devices to landscape #10347
Conversation
This fixes the horrible menu UI stretching when the device is too narrow.
This fixes the horrible menu UI stretching.
This isn't what we want. For a starters, tablets play in portrait just file. The eventual goal is to fix remaining overlapping elements and allow the app to run in either orientation. Does your device not have a rotation lock function? |
in my device, even if it is locked to portrait it still rotates |
Additionally, please note that we strongly discourage making contributions to code via the github web interface, as in our experience they tend to correlate with untested changes. Please read our contributing guidelines if you haven't already. |
That's because they use |
I read it, it was just convenient for me. I double-checked my changes in the CLI before pushing. |
I can confirm rotation lock works as expected on iOS without this change, so it's definitely not required there. Plus there are valid use cases for portrait, as mentioned, on tablet devices. |
Ah I see. However, does it not seem awkward in the screenshots? Regardless of the overlapping elements, the menu looks spare. Also, yes, my device has a rotation lock function. However, as per Google's documentation:
It appears you would be better off using
|
iOS would work fine, the rotation lock is controlled system-side and the application cannot override it. See my most recent reply above. |
I'm less familiar with the android API, but |
Would you like me to close this pull request and make a new one for |
P.S.: I suggest you mandate non-web made commits. I read the message in the discord, it's nothing like "this code is untested, test it for me", it's more like I'd prefer to not whip out VS to edit 3 lines haha. I see where you're coming from, but in the contributing file, I don't think the word "discourage" gets the point across. |
Just making changes in this commit would have been fine, but it'd be appreciated if you make a non-web version for everyone's sanity :). |
Issue
The portrait orientation of osu! in the menu is stretched and overlaps itself.
Photos
https://photos.app.goo.gl/G5d3h8G6uGDTqZ6g7
Solution
Restrict the orientation of the Android and iOS builds from
FullSensor
(aka all four orientations regardless of rotation lock) toLandscape
.