Wrong point being passed to -hitTest:withEvent: and -touchesBegan:withEvent:

Originator:jahjelle
Number:rdar://20350412 Date Originated:3/30/2015
Status:Open Resolved:
Product:iOS SDK Product Version:8.x
Classification: Reproducible:Always
 
Summary:
When a second window is presented in landscape, the wrong point is sent to that window's -hitTest:withEvent: and -touchesBegan:withEvent: methods under certain circumstances.

Steps to Reproduce:
1. Launch the attached example app (on device or in the iOS Simulator)
2. Rotate so the view is displayed in landscape
3. Tap *Button*
4. When the yellow view appears, try to tap *Button 2*
5. Look in the Console for two logs containing "hitTest Event:" and the same timestamp
6. Also look in the Console for logs about "touchesBegan", "touchesMoved", "touchesEnded", etc.

Expected Results:
The "hitTest Event:" logs with the same timestamp should be logging the same point. Similarly, the logs for "touchesBegan", "touchesEnded", etc. should be logging points in roughly the same location.

Actual Results:
For the "hitTest Event:" logs, the y-coordinate of the second event is different than the first (and appears to be capped past a certain point). Similarly, the y-coordinate of "location in window" and "location in view" for the "touchesBegan" log and the "touchesEnded" and "touchesMoved" log differ by more than a few points.

Version:
Any version of iOS 8

Notes:
Example project with notes have been posted to https://github.com/hjon/WindowTest.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!