Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed delegate not being called

  • Loading branch information...
commit 4aa2a648e2d30029ddc6f4115363cb6cb6ce8d41 1 parent 15bbb90
@myell0w authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 MTZoomWindow.m
View
6 MTZoomWindow.m
@@ -170,7 +170,7 @@ - (void)zoomOut {
// hide window
self.hidden = YES;
- id<MTZoomWindowDelegate> delegate = self.zoomDelegate;
+ id<MTZoomWindowDelegate> delegate = self.zoomedView.zoomDelegate;
if ([delegate respondsToSelector:@selector(zoomWindow:didZoomOutView:)]) {
[delegate zoomWindow:self didZoomOutView:self.zoomedView];
@@ -226,7 +226,7 @@ - (void)setZoomGestures:(NSInteger)zoomGestures {
- (void)handleGesture:(UIGestureRecognizer *)gestureRecognizer {
if (gestureRecognizer.state == UIGestureRecognizerStateRecognized) {
- [self zoomOut];
+ [self.zoomedView zoomOut];
}
}
@@ -242,7 +242,7 @@ - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
- (void)scrollViewDidZoom:(UIScrollView *)scrollView {
if (self.zoomGestures & MTZoomGesturePinch) {
if (!scrollView.zooming && scrollView.zoomBouncing && scrollView.zoomScale <= 1.f) {
- [self zoomOut];
+ [self.zoomedView zoomOut];
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.