mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-05 02:05:25 +08:00
Do not call long press listener when scaling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user