summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-01-22 10:58:38 +0000
committerRobin Watts <robin.watts@artifex.com>2015-01-22 10:59:55 +0000
commit5776c7dc1aacd58511c9ffb06357b970f2fea7ae (patch)
treecdf2ea7de7416adf3a99d8cfef3aec92a75458de /platform/android
parent8d836767a5c861685204408fbd4c511a7501dea9 (diff)
downloadmupdf-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.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/ReaderView.java2
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);