aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-09-09 17:20:51 -0700
committerScott Jackson <daneren2005@gmail.com>2015-09-09 17:20:51 -0700
commit19ddf00adafe7bbfded7072e7ed6f0ac5a36abdc (patch)
tree20e0ca5b6524dad3c59ce08a62da209a322a857c /app/src/main/java/github
parent2f0c0b210cb12e7d7b7cb50c10e7c9e78f23d66f (diff)
downloaddsub-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.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 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) {