diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2013-09-25 10:18:17 +0100 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2013-09-25 10:18:17 +0100 |
commit | 457d80c7612e07a8570ae47d27f53f1e0e125cc9 (patch) | |
tree | de422de051e84ecf390bf84a0ec513f4b9dc19c3 /platform/ios | |
parent | d4a69b3f24c3697cb0e77b7685468423c0949a71 (diff) | |
download | mupdf-457d80c7612e07a8570ae47d27f53f1e0e125cc9.tar.xz |
iOS: while adjusting reflow zoom, refresh only the visible page
At end of gesture all pages are refreshed so that newly-becoming-visible
pages appear at the correct zoom.
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/Classes/MuDocumentController.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 29a9aadc..e089e0bb 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -487,7 +487,11 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out scale = sender.scale; for (UIView<MuPageView> *view in [canvas subviews]) - [view setScale:sender.scale]; + { + // Zoom only the visible page until end of gesture + if (view.number == current || sender.state == UIGestureRecognizerStateEnded) + [view setScale:sender.scale]; + } } - (void) scrollViewWillBeginDragging: (UIScrollView *)scrollView |