iOS Simulator (iPad): press lands a fixed offset away in landscape (0,+52 left; +156,0 right) and reports success
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- ios, typescript
- Domaine
- mobile
Piste de recherche
Start at the press command's touch-dispatch path and trace how it handles iOS Simulator coordinates after an orientation change. Reproduce on an iPad Simulator in both landscape orientations using the coordinates in the issue, then compare the dispatched touch location with the requested point. Done means presses land at the requested coordinates in portrait and landscape, including selector presses.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
On an iPad Simulator in landscape, every press lands a fixed distance away from the point asked for, and the command still reports success. The shift depends on the orientation. Portrait is exact. Snapshot rects are correct: the same element's rect from get attrs matches the accessibility frame from another tool, so only the dispatched touch is shifted.
| Orientation | press at |
App received the touch at | Offset |
|---|---|---|---|
| portrait | 120,300 / 600,250 / 760,700 | 120,300 / 600,250 / 760,700 | 0,0 |
| landscape-left | 120,300 / 600,250 / 300,760 | 120,352 / 600,302 / 300,812 | 0,+52 |
| landscape-right | 150,300 / 1000,250 | 306,300 / 1156,250 | +156,0 |
How the landing point was measured: a passive UIGestureRecognizer on the app's key window (cancelsTouchesInView = false) records location(in: window) of every touch. For comparison, the same points tapped through idb/axe (HID) land exactly in every orientation.
Selector presses have the same shift, because they press the (correct) rect centre:
press 'label="Settings"'in landscape-left activated the row below it, 52 pt lower.- A popup menu pick selected the next menu item.
The settled diff then shows a change, so the wrong tap is reported as ok.
Repro
- Boot an iPad Simulator and open any app that fills the screen:
agent-device open <bundle-id> --platform ios --udid <udid>. - Rotate:
agent-device orientation landscape-left. The app's window becomes 1180x820. - Press a known point:
agent-device press 120 300. - The app receives the touch at (120, 352). In
landscape-right,press 150 300arrives at (306, 300).
Our workaround: press a clear spot, read where it landed, and subtract that offset from later presses. After that, taps land exactly in both landscape orientations, so the offset seems to be constant per orientation.
Environment
- agent-device 0.21.34. The 0.21.35 notes list no related change.
- Xcode 27.1 (27A9275), iOS 27.1 Simulator runtime, iPad (A16), macOS 27.0.1.
- The app is a SwiftUI app with full-screen scenes (window "full", not windowed).
This may be related to #1511 (the physical-device unrotated touch space), but on the Simulator the shift is a translation, not a rotation.
- Langage dominant
- TypeScript
- Étoiles
- 5.2k
- Forks
- 359
- Merge moyen
- 13 h 23 min
- PR mergées (30 j)
- 655
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de callstack/agent-device
-
iOS alert wait: the last poll can get ~30 ms and turns "no alert" into a failed readPeut-être pris @pcbeingused333 l’a pris il y a 2 jours. Ouvertebug ready-for-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
callstack/agent-device#4018 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
callstack/agent-device#1869 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 18/100
callstack/agent-device#4179 ·
Les mainteneurs répondent en général sous 1 jour
-
Daemon: refuse leased requests that name no session at request admissionPeut-être pris @airowe l’a pris aujourd’hui. Ouvertebug ready-for-agent
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
callstack/agent-device#4171 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs-triage
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
callstack/agent-device#4162 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de callstack/agent-device
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
ready-for-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
LucasSantana-Dev/Lucky#2951 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
danielmiessler/LifeOS#2567 ·
Les mainteneurs répondent en général sous 9 jours
-
refactor(react-pi): classify base64 images with core's parseBase64Peut-être pris @jimmyallinai l’a pris aujourd’hui. Ouvertemaintenance
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
assistant-ui/assistant-ui#10293 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
brijeshb42/monaco-vim#175 ·