From 5ac49662b7d7affd0b43c6b8e827e292b6b8e3e3 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 3 Oct 2013 15:14:01 +0100 Subject: iOS: implement internal-link following Also: add hooks for the other link types remove unnecessary protocol from MuPageViewReflow turn off optimizations for the debug build --- platform/ios/Classes/MuPageViewNormal.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platform/ios/Classes/MuPageViewNormal.m') diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index ccdd4fcd..3c25475e 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -525,4 +525,10 @@ static UIImage *renderPage(fz_document *doc, fz_display_list *page_list, fz_disp - (void) setScale:(float)scale {} +- (MuTapResult *) handleTap:(CGPoint)pt +{ + CGPoint lpt = [self convertPoint:pt toView:linkView]; + return linkView ? [linkView handleTap:lpt] : nil; +} + @end -- cgit v1.2.3