Do not start text selection directly on LMB

This commit is contained in:
Fredrik Fornwall
2016-01-13 13:17:36 +01:00
parent ed544102bc
commit 6caaae4fd6

View File

@@ -531,18 +531,11 @@ public final class TerminalView extends View {
break;
}
return true;
} else if (action == MotionEvent.ACTION_DOWN) {
// Start text selection with mouse. Note that the check against MotionEvent.ACTION_DOWN is
// important, since we otherwise would pick up secondary mouse button up actions.
toggleSelectingText(ev);
return true;
}
} else {
mGestureRecognizer.onTouchEvent(ev);
return true;
}
return false;
mGestureRecognizer.onTouchEvent(ev);
return true;
}
@Override