reset autoscroll related things on action_up

This commit is contained in:
tibbi 2017-05-14 15:09:16 +02:00
parent 78e0ef3552
commit 883e6ce511

View file

@ -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