Skip to content

Commit

Permalink
Center hidden interactivity is now applied to Top/Bottom view control…
Browse files Browse the repository at this point in the history
…lers.

Fixes #187.
  • Loading branch information
Inferis committed Dec 23, 2012
1 parent 7fde6dc commit c892c57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ViewDeck/IIViewDeckController.m
Expand Up @@ -2065,7 +2065,19 @@ - (void)centerTapped {
else
[self closeRightViewBouncing:nil];
}
if (self.bottomController && CGRectGetMinY(self.slidingControllerView.frame) < 0) {
if (self.centerhiddenInteractivity == IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose)
[self closeBottomView];
else
[self closeBottomViewBouncing:nil];
}

if (self.topController && CGRectGetMinY(self.slidingControllerView.frame) > 0) {
if (self.centerhiddenInteractivity == IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose)
[self closeTopView];
else
[self closeTopViewBouncing:nil];
}
}
}

Expand Down

0 comments on commit c892c57

Please sign in to comment.