mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-03-10 08:30:21 +01:00
make zooming in and out a bit easier
This commit is contained in:
parent
b02f0ad8fb
commit
9e9d164f9f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user