diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-09-09 17:20:51 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-09-09 17:20:51 -0700 |
commit | 19ddf00adafe7bbfded7072e7ed6f0ac5a36abdc (patch) | |
tree | 20e0ca5b6524dad3c59ce08a62da209a322a857c /app/src/main/java/github | |
parent | 2f0c0b210cb12e7d7b7cb50c10e7c9e78f23d66f (diff) | |
download | dsub-19ddf00adafe7bbfded7072e7ed6f0ac5a36abdc.tar.gz dsub-19ddf00adafe7bbfded7072e7ed6f0ac5a36abdc.tar.bz2 dsub-19ddf00adafe7bbfded7072e7ed6f0ac5a36abdc.zip |
Fix grab area for fast scroll being too small
Diffstat (limited to 'app/src/main/java/github')
-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 07f899ed..1ac809fd 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java +++ b/app/src/main/java/github/daneren2005/dsub/view/FastScroller.java @@ -88,8 +88,10 @@ public class FastScroller extends LinearLayout { switch(action) { case MotionEvent.ACTION_DOWN: - if(event.getX()<handle.getX()) + if(event.getX() < (handle.getX() - 20)) { return false; + } + if(currentAnimator != null) currentAnimator.cancel(); if(bubble.getVisibility() == INVISIBLE) { |