diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-10-23 15:46:10 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-10-23 15:46:10 -0700 |
commit | 3cf3c0143b0c5e2e767fe8d89dcf79ea2d19a186 (patch) | |
tree | 4fc68af19824df031ae9e43fd0674b8d767b0e93 /app/src/main/java | |
parent | d4ff27687690e3cb576dfec08c2cbf0ee847cd4a (diff) | |
download | dsub-3cf3c0143b0c5e2e767fe8d89dcf79ea2d19a186.tar.gz dsub-3cf3c0143b0c5e2e767fe8d89dcf79ea2d19a186.tar.bz2 dsub-3cf3c0143b0c5e2e767fe8d89dcf79ea2d19a186.zip |
#578 Fix scroller getting stuck at top and bot after jittery fix
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/view/FastScroller.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java b/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java index 9a108804..e36667d8 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java +++ b/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java @@ -104,7 +104,9 @@ public class FastScroller extends LinearLayout { handle.setSelected(true); case MotionEvent.ACTION_MOVE: final float y = event.getY(); - // setBubbleAndHandlePosition(y); + if(handle.getY() <= 0 || (handle.getY() + handle.getHeight()) >= height - TRACK_SNAP_RANGE) { + setBubbleAndHandlePosition(y); + } setRecyclerViewPosition(y); return true; case MotionEvent.ACTION_UP: |