mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-25 19:51:10 +01:00
Do not start text selection directly on LMB
This commit is contained in:
parent
ed544102bc
commit
6caaae4fd6
1 changed files with 2 additions and 9 deletions
|
|
@ -531,18 +531,11 @@ public final class TerminalView extends View {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
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
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue