Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ainopara committed Sep 20, 2014
1 parent 9fa2a37 commit 024d2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/JTSImageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ - (void)imageLongPressed:(UILongPressGestureRecognizer *)sender {

if (self.image && sender.state == UIGestureRecognizerStateBegan) {
if ([self.interactionsDelegate respondsToSelector:@selector(imageViewerDidLongPress:atRect:)]) {
CGPoint location = [sender locationInView:self.imageView];
CGPoint location = [sender locationInView:self.view];
[self.interactionsDelegate imageViewerDidLongPress:self atRect:CGRectMake(location.x, location.y, 0.0f, 0.0f)];
}

Expand Down

0 comments on commit 024d2b2

Please sign in to comment.