From 9e9d164f9f3861d0bab8ea313ff92e2d3aa43a03 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 27 Dec 2016 00:39:54 +0100 Subject: [PATCH] make zooming in and out a bit easier --- .../simplemobiletools/gallery/views/MyScalableRecyclerView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt index 0fc41e885..bd6b25654 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt @@ -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)