aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/connectbot/ConsoleActivity.java
diff options
context:
space:
mode:
authorJeremy Klein <jlklein@google.com>2015-07-29 13:49:06 -0700
committerJeremy Klein <jlklein@google.com>2015-07-29 15:35:31 -0700
commit125be93257c9ea04650a0dddf7213741eba1913f (patch)
treeb0455b51fd9552bc12447f3394674adfad38ec75 /app/src/main/java/org/connectbot/ConsoleActivity.java
parenta50c117765c8795346187a950b1407fe827f3f11 (diff)
downloadconnectbot-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.java3
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;