summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2014-10-11 10:54:51 (GMT)
committer Jaromil <jaromil@dyne.org>2014-10-11 10:54:51 (GMT)
commit4ffdc8768281d8f2898c66ecea6796a1fce1fd82 (patch)
treee7f13dbabcc1e169d595def4fecfd98abe882ad8
parent2d02d3a6e4285c46fee62ac0cc49616f1dc6af0a (diff)
removed horizontal surface fling to switch terminal, annoying when scrolling (now tmux is preferred for multiple terminals)
-rw-r--r--termapk/src/com/spartacusrex/spartacuside/EmulatorView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/termapk/src/com/spartacusrex/spartacuside/EmulatorView.java b/termapk/src/com/spartacusrex/spartacuside/EmulatorView.java
index 5be0dc6..8b4e8a4 100644
--- a/termapk/src/com/spartacusrex/spartacuside/EmulatorView.java
+++ b/termapk/src/com/spartacusrex/spartacuside/EmulatorView.java
@@ -619,6 +619,7 @@ public class EmulatorView extends View implements GestureDetector.OnGestureListe
mLeftColumn = 0;
mGestureDetector = new GestureDetector(this);
// mGestureDetector.setIsLongpressEnabled(false);
+/*
mGestureDetector.setOnDoubleTapListener(new GestureDetector.OnDoubleTapListener() {
public boolean onSingleTapConfirmed(MotionEvent arg0) {
return true;
@@ -635,7 +636,7 @@ public class EmulatorView extends View implements GestureDetector.OnGestureListe
return true;
}
});
-
+*/
setVerticalScrollBarEnabled(true);
setFocusable(true);
setFocusableInTouchMode(true);
@@ -777,6 +778,8 @@ public class EmulatorView extends View implements GestureDetector.OnGestureListe
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
+ return true;
+/*
if (Math.abs(velocityX) > Math.abs(velocityY)) {
// Assume user wanted side to side movement
if (velocityX > 0) {
@@ -798,6 +801,7 @@ public class EmulatorView extends View implements GestureDetector.OnGestureListe
onScroll(e1, e2, 2 * velocityX, -2 * velocityY);
}
return true;
+*/
}
public void onShowPress(MotionEvent e) {