mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-09 03:56:09 +01: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:
parent
ab59e08959
commit
b3472e9e62
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue