|
|
@ -27,8 +27,7 @@ class ScrollPageDelegate(pageView: PageView) : PageDelegate(pageView) { |
|
|
|
override fun onTouch(event: MotionEvent) { |
|
|
|
override fun onTouch(event: MotionEvent) { |
|
|
|
when (event.action) { |
|
|
|
when (event.action) { |
|
|
|
MotionEvent.ACTION_DOWN -> { |
|
|
|
MotionEvent.ACTION_DOWN -> { |
|
|
|
lastY = event.y |
|
|
|
setStartPoint(event.x, event.y) |
|
|
|
setTouchPoint(event.x, event.y) |
|
|
|
|
|
|
|
abort() |
|
|
|
abort() |
|
|
|
mVelocity.clear() |
|
|
|
mVelocity.clear() |
|
|
|
} |
|
|
|
} |
|
|
|