Skip to content

Commit

Permalink
FIX: reverting _originalFrame back to correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed Mar 29, 2014
1 parent 1c82f0e commit 3385be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions URBMediaFocusViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ - (void)showImage:(UIImage *)image fromRect:(CGRect)fromRect {

// set initial frame of image view to match that of the presenting image
self.imageView.frame = [self.view convertRect:fromRect fromView:nil];
_originalFrame = fromRect;
_originalFrame = targetRect;

// rotate imageView based on current device orientation
[self reposition];
Expand Down Expand Up @@ -765,7 +765,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
BOOL shouldRecognize = transformScale > _minScale;

// make sure tap and double tap gestures aren't recognized simultaneously
shouldRecognize = !([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] && [otherGestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]);
shouldRecognize = shouldRecognize && !([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] && [otherGestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]);

return shouldRecognize;
}
Expand Down

0 comments on commit 3385be3

Please sign in to comment.