aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-10-23 15:46:10 -0700
committerScott Jackson <daneren2005@gmail.com>2015-10-23 15:46:10 -0700
commit3cf3c0143b0c5e2e767fe8d89dcf79ea2d19a186 (patch)
tree4fc68af19824df031ae9e43fd0674b8d767b0e93 /app/src/main/java
parentd4ff27687690e3cb576dfec08c2cbf0ee847cd4a (diff)
downloaddsub-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.java4
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: