diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-01-22 10:58:38 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-01-22 10:59:55 +0000 |
commit | 5776c7dc1aacd58511c9ffb06357b970f2fea7ae (patch) | |
tree | cdf2ea7de7416adf3a99d8cfef3aec92a75458de | |
parent | 8d836767a5c861685204408fbd4c511a7501dea9 (diff) | |
download | mupdf-5776c7dc1aacd58511c9ffb06357b970f2fea7ae.tar.xz |
Fix android scrolling bug.
Spotted by "Pogon". The code to choose between horizontal and vertical
scrolling was broken due to a missing ! in a condition. Cut and Paste
error.
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/ReaderView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/ReaderView.java b/platform/android/src/com/artifex/mupdfdemo/ReaderView.java index e27f0bbf..07eb6824 100644 --- a/platform/android/src/com/artifex/mupdfdemo/ReaderView.java +++ b/platform/android/src/com/artifex/mupdfdemo/ReaderView.java @@ -408,7 +408,7 @@ public class ReaderView } break; case MOVING_DOWN: - if (HORIZONTAL_SCROLLING && bounds.bottom <= 0) { + if (!HORIZONTAL_SCROLLING && bounds.bottom <= 0) { // Fling off to the bottom bring previous view onto screen View vr = mChildViews.get(mCurrent-1); |