mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
reset autoscroll related things on action_up
This commit is contained in:
@ -78,6 +78,9 @@ class MyScalableRecyclerView : RecyclerView {
|
|||||||
when (ev.action) {
|
when (ev.action) {
|
||||||
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
|
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
|
||||||
dragSelectActive = false
|
dragSelectActive = false
|
||||||
|
inTopHotspot = false
|
||||||
|
inBottomHotspot = false
|
||||||
|
autoScrollHandler.removeCallbacks(autoScrollRunnable)
|
||||||
mCurrScaleFactor = 1.0f
|
mCurrScaleFactor = 1.0f
|
||||||
mLastUp = System.currentTimeMillis()
|
mLastUp = System.currentTimeMillis()
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user