From 5776c7dc1aacd58511c9ffb06357b970f2fea7ae Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 22 Jan 2015 10:58:38 +0000 Subject: 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. --- platform/android/src/com/artifex/mupdfdemo/ReaderView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/android') 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); -- cgit v1.2.3