make zooming in and out a bit easier

This commit is contained in:
tibbi 2016-12-27 00:39:54 +01:00
parent b02f0ad8fb
commit 9e9d164f9f

View file

@ -36,8 +36,8 @@ class MyScalableRecyclerView : RecyclerView {
}
class GestureListener : ScaleGestureDetector.SimpleOnScaleGestureListener() {
val ZOOM_IN_THRESHOLD = -0.7f
val ZOOM_OUT_THRESHOLD = 0.3f
val ZOOM_IN_THRESHOLD = -0.6f
val ZOOM_OUT_THRESHOLD = 0.25f
override fun onScale(detector: ScaleGestureDetector): Boolean {
if (System.currentTimeMillis() - mLastUp < 1000)