[Android] Audio player: fix the playlist scroll
Adrien Maglo
git at videolan.org
Thu Jan 16 10:40:03 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Jan 16 10:39:49 2014 +0100| [6f11dd821405d7f79c740f2b5ed66790d73764cc] | committer: Adrien Maglo
Audio player: fix the playlist scroll
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6f11dd821405d7f79c740f2b5ed66790d73764cc
---
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
index 76bfdf6..846f302 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -540,7 +540,9 @@ public class SlidingPaneLayout extends ViewGroup {
}
}
- final boolean interceptForDrag = mDragHelper.shouldInterceptTouchEvent(ev);
+ final boolean interceptForDrag = mDragHelper.shouldInterceptTouchEvent(ev)
+ // Intercept touch events only in the overhang area.
+ && ev.getY() <= mSlideOffset * mSlideRange + mOverhangSize;
return interceptForDrag;
}
More information about the Android
mailing list