diff options
author | Jeremy Klein <jlklein@google.com> | 2015-07-29 13:49:06 -0700 |
---|---|---|
committer | Jeremy Klein <jlklein@google.com> | 2015-07-29 15:35:31 -0700 |
commit | 125be93257c9ea04650a0dddf7213741eba1913f (patch) | |
tree | b0455b51fd9552bc12447f3394674adfad38ec75 /app/src/main/java/org/connectbot/ConsoleActivity.java | |
parent | a50c117765c8795346187a950b1407fe827f3f11 (diff) | |
download | connectbot-125be93257c9ea04650a0dddf7213741eba1913f.tar.gz connectbot-125be93257c9ea04650a0dddf7213741eba1913f.tar.bz2 connectbot-125be93257c9ea04650a0dddf7213741eba1913f.zip |
Use scaled touch slop for determining the scroll x-tolerance.
Diffstat (limited to 'app/src/main/java/org/connectbot/ConsoleActivity.java')
-rw-r--r-- | app/src/main/java/org/connectbot/ConsoleActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/org/connectbot/ConsoleActivity.java b/app/src/main/java/org/connectbot/ConsoleActivity.java index e7a8f7d..3a89c4c 100644 --- a/app/src/main/java/org/connectbot/ConsoleActivity.java +++ b/app/src/main/java/org/connectbot/ConsoleActivity.java @@ -500,7 +500,8 @@ public class ConsoleActivity extends Activity { } // activate consider if within x tolerance - if (Math.abs(e1.getX() - e2.getX()) < ViewConfiguration.getTouchSlop() * 4) { + int touchSlop = ViewConfiguration.get(ConsoleActivity.this).getScaledTouchSlop(); + if (Math.abs(e1.getX() - e2.getX()) < touchSlop * 4) { View flip = findCurrentView(R.id.console_flip); if (flip == null) return false; |