summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuPageViewNormal.m
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2013-10-03 15:14:01 +0100
committerPaul Gardiner <paul.gardiner@artifex.com>2013-10-09 14:31:12 +0100
commit5ac49662b7d7affd0b43c6b8e827e292b6b8e3e3 (patch)
tree35d03d97edec2db4463f7764efc95055fad3a216 /platform/ios/Classes/MuPageViewNormal.m
parent17c797eaaec9b33aedf4970fe2184f86f65b25d8 (diff)
downloadmupdf-5ac49662b7d7affd0b43c6b8e827e292b6b8e3e3.tar.xz
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
Diffstat (limited to 'platform/ios/Classes/MuPageViewNormal.m')
-rw-r--r--platform/ios/Classes/MuPageViewNormal.m6
1 files changed, 6 insertions, 0 deletions
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