From 883e6ce5117ab14d5ef0bcfd9e0faefaa3c6790f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 14 May 2017 15:09:16 +0200 Subject: [PATCH] reset autoscroll related things on action_up --- .../simplemobiletools/gallery/views/MyScalableRecyclerView.kt | 3 +++ 1 file changed, 3 insertions(+) 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 07b2f8139..3b1a6add8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyScalableRecyclerView.kt @@ -78,6 +78,9 @@ class MyScalableRecyclerView : RecyclerView { when (ev.action) { MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> { dragSelectActive = false + inTopHotspot = false + inBottomHotspot = false + autoScrollHandler.removeCallbacks(autoScrollRunnable) mCurrScaleFactor = 1.0f mLastUp = System.currentTimeMillis() return true