mirror of https://github.com/termux/termux-app
Do not call long press listener when scaling
This commit is contained in:
parent
0142e1ed0e
commit
8c220eaaea
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue