When iPad is UIDeviceOrientationLandscapeRight, pan gestures starting from outside the right edge of screen do not fire
| Originator: | westacular | ||
| Number: | rdar://16533578 | Date Originated: | 05-Apr-2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Reproducible: | Always |
When an iPad's orientation is UIDeviceOrientationLandscapeRight, and the user starts a pan gesture outside the right edge of the screen (i.e., starting a swipe from the camera edge and moving your finger leftwards onto the screen), the expected UIPanGestureRecognizer or UIScreenEdgePanGestureRecognizer (with edge = UIRectEdgeRight) callbacks are never called.
Steps to Reproduce:
1. Create a UIPanGestureRecognizer
2. Attach it to a full-screen view
3. Run
4. Orient the device in landscape, with home button on left and camera on right
5. Start a swipe outside the screen on the camera edge
6. Move your finger to the left onto the screen
Expected Results:
UIPanGestureRecognizer action selector is called, starting when the finger moves onto the screen.
Actual Results:
UIPanGestureRecognizer action selector is never called.
Version:
7.0.6
7.1
Notes:
Sample code:
- (void)viewDidLoad {
[super viewDidLoad];
UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
[self.view addGestureRecognizer:pan];
}
- (void)handlePan:(UIPanGestureRecognizer *)pan {
NSLog(@"panning");
}
You can also observe this issue in Maps.
Configuration:
Tested on multiple iPad 3s.
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!