-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
iOS landscape orientation is drawn upside down #6317
Comments
I've added a workaround for this by adding the following to my touch functions in order to get the correct touch x and y values:
However a second issue I've now found is that if I do a double tap it will call |
Thanks @liamlacey ! |
Hi ofTheo, |
Resulting in the touch points being flipped compared to the view. |
Thanks @liamlacey - I'll take a look! |
@liamlacey I was able to reproduce on my end for both device and simulator. Could you confirm that switching the ofxiOS/src/core/ofxiOSEAGLView.mm to:
Fixes the issue for you? |
Here is a simple example to reproduce the bug. I was going to switch both to as above - but just wanted to get your take first.
|
When setting the iOS orientation mode to landscape (90_LEFT or 90_RIGHT) the window is drawn upside down (meaning touch position 0,0 is at the bottom right instead of the top left).
I’ve tested this with iosOrientationExample with iOS release version 0.10.1, using an iPhone 8 running the latest iOS version.
The text was updated successfully, but these errors were encountered: