mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-05 02:05:25 +08:00
Disable the "quick scale" gesture
Disable the default android behaviour where a double tap followed by a swipe is interpreted as a zoom gesture. Most people seem not to know about it and hit it by mistake, see #495 for an example.
This commit is contained in:
@@ -85,6 +85,7 @@ final class GestureAndScaleRecognizer {
|
|||||||
return mListener.onScale(detector.getFocusX(), detector.getFocusY(), detector.getScaleFactor());
|
return mListener.onScale(detector.getFocusX(), detector.getFocusY(), detector.getScaleFactor());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
mScaleDetector.setQuickScaleEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onTouchEvent(MotionEvent event) {
|
public void onTouchEvent(MotionEvent event) {
|
||||||
|
Reference in New Issue
Block a user