diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-01-24 15:59:23 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-01-24 16:00:24 +0000 |
commit | f6d08c38bd1dcb25184d1529c49a12d0ba8117a7 (patch) | |
tree | 92b41af03b0f970a5842d9ed6fec37307c82ecfa | |
parent | 8a0c34842dff4efb56ac5e7c0a7a4987dd0ec00d (diff) | |
download | mupdf-f6d08c38bd1dcb25184d1529c49a12d0ba8117a7.tar.xz |
Android: Smart Motion fix.
Moving backwards from the top of a zoomed out page was taking us
back to the top of the previous page, not the bottom. Fixed here.
Thanks to Tor for spotting this.
-rw-r--r-- | android/src/com/artifex/mupdfdemo/ReaderView.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/android/src/com/artifex/mupdfdemo/ReaderView.java b/android/src/com/artifex/mupdfdemo/ReaderView.java index 6a01e288..4d84d03b 100644 --- a/android/src/com/artifex/mupdfdemo/ReaderView.java +++ b/android/src/com/artifex/mupdfdemo/ReaderView.java @@ -235,10 +235,9 @@ public class ReaderView extends AdapterView<Adapter> xOffset = prevDocWidth - screenWidth; while (xOffset + screenWidth*2 < prevDocWidth) xOffset += screenWidth; - yOffset -= screenHeight-prevDocHeight; } xOffset -= prevLeft; - yOffset -= prevTop; + yOffset -= prevTop-prevDocHeight+screenHeight; } else { // Move to bottom of previous column xOffset = -screenWidth; |