openframeworks / openframeworks/openFrameworks

iOS: touch coordinates wrong when started upside down

Open
#7,311 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

when starting an OF app on an upside-down iPad (home button at top), the touch coordinates are wrong. the iPad has to be physically rotated (triggering the accompanying rotation animation) for the coordinates to match screen position. OF-git 20230207, Xcode 14.2 / iOS 16.3.

#6965 discusses different related issues, but I'd like to stick this up as a circumscribed, actionable bug.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on an upside-down iPad using the reported openFrameworks, Xcode, and iOS versions, then trace the iOS touch-coordinate and orientation handling. Compare coordinates before and after the device is physically rotated. Done means touch coordinates match screen position immediately when the app starts upside down, without requiring a rotation animation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.