reset autoscroll related things on action_up
This commit is contained in:
parent
78e0ef3552
commit
883e6ce511
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue