Skip to content

Commit

Permalink
Merge pull request #8145 from hansemannn/TIMOB-23659
Browse files Browse the repository at this point in the history
[TIMOB-23659] iOS: Fix "swipeToClose" on root window
  • Loading branch information
AngelkPetkov committed Jul 20, 2016
2 parents 4b12664 + 99a6e9e commit 76915cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iphone/Classes/TiUIiOSNavWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ -(UINavigationController*)controller

-(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
if (current != nil) {
BOOL isRootWindow = (current == rootWindow);

if (current != nil && !isRootWindow) {
return [TiUtils boolValue:[current valueForKey:@"swipeToClose"] def:YES];
}
return YES;
return !isRootWindow;
}

-(void)openWindow:(NSArray*)args
Expand Down

0 comments on commit 76915cb

Please sign in to comment.