Fix: Crash when hold the screen

This commit is contained in:
zt515 2017-08-25 23:19:13 +08:00
parent 465b6dcf8e
commit 6f3cceca71

View File

@ -459,7 +459,11 @@ public final class TerminalView extends View {
if (-mTopRow + rowShift > rowsInHistory) {
// .. unless we're hitting the end of history transcript, in which
// case we abort text selection and scroll to end.
toggleSelectingText(null);
// 只当是因为选择文字而停止滚动时才取消选择文字
if (mIsSelectingText) {
toggleSelectingText(null);
}
} else {
skipScrolling = true;
mTopRow -= rowShift;