Do not call long press listener when scaling

This commit is contained in:
Fredrik Fornwall 2017-04-02 14:07:19 +02:00
parent 0142e1ed0e
commit 8c220eaaea
1 changed files with 2 additions and 1 deletions

View File

@ -188,8 +188,9 @@ public final class TerminalView extends View {
@Override
public void onLongPress(MotionEvent e) {
if (mGestureRecognizer.isInProgress()) return;
if (mOnKeyListener.onLongPress(e)) return;
if (!mGestureRecognizer.isInProgress() && !mIsSelectingText) {
if (!mIsSelectingText) {
performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
toggleSelectingText(e);
}