From 99aaa7d985a84302a9945633727bcb444329353e Mon Sep 17 00:00:00 2001 From: siqi Date: Mon, 15 Jul 2013 13:09:26 +0200 Subject: click on next slide preview will bring users to the next slide --- ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard | 3 ++- ios/iosremote/iosremote/slideShow_vc.m | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'ios') diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard index 1867d814c55d..9e5f891861d5 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard @@ -299,7 +299,7 @@ - + @@ -627,6 +627,7 @@ + diff --git a/ios/iosremote/iosremote/slideShow_vc.m b/ios/iosremote/iosremote/slideShow_vc.m index 9504e79d57f8..c8f58fc6494e 100644 --- a/ios/iosremote/iosremote/slideShow_vc.m +++ b/ios/iosremote/iosremote/slideShow_vc.m @@ -186,8 +186,8 @@ } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { + UITouch *touch = [[event allTouches] anyObject]; if (!self.touchPointerImage.isHidden){ - UITouch *touch = [[event allTouches] anyObject]; CGPoint loc = [touch locationInView:self.touchPointerImage]; if (loc.x >= 0 && loc.x <= self.touchPointerImage.frame.size.width && loc.y >= 0 && loc.y <= self.touchPointerImage.frame.size.height){ @@ -198,6 +198,12 @@ [self.movingPointer setHidden:NO]; } } + + if ([touch view] == self.secondarySlideView) + { + // Change to the next slide when secondary slide is clicked + [self nextSlideAction:nil]; + } } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -- cgit