mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 11:09:49 +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
|
@Override
|
||||||
public void onLongPress(MotionEvent e) {
|
public void onLongPress(MotionEvent e) {
|
||||||
|
if (mGestureRecognizer.isInProgress()) return;
|
||||||
if (mOnKeyListener.onLongPress(e)) return;
|
if (mOnKeyListener.onLongPress(e)) return;
|
||||||
if (!mGestureRecognizer.isInProgress() && !mIsSelectingText) {
|
if (!mIsSelectingText) {
|
||||||
performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
|
performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
|
||||||
toggleSelectingText(e);
|
toggleSelectingText(e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user