|
|
@ -26,10 +26,10 @@ class ScrollPageDelegate(pageView: PageView) : PageDelegate(pageView) { |
|
|
|
|
|
|
|
|
|
|
|
override fun onTouch(event: MotionEvent): Boolean { |
|
|
|
override fun onTouch(event: MotionEvent): Boolean { |
|
|
|
if (event.action == MotionEvent.ACTION_DOWN) { |
|
|
|
if (event.action == MotionEvent.ACTION_DOWN) { |
|
|
|
|
|
|
|
lastY = event.y |
|
|
|
setStartPoint(event.x, event.y) |
|
|
|
setStartPoint(event.x, event.y) |
|
|
|
abort() |
|
|
|
abort() |
|
|
|
mVelocity.clear() |
|
|
|
mVelocity.clear() |
|
|
|
mVelocity.addMovement(event) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return super.onTouch(event) |
|
|
|
return super.onTouch(event) |
|
|
|
} |
|
|
|
} |
|
|
|