|
|
@ -22,7 +22,7 @@ class ScrollPageDelegate(pageView: PageView) : PageDelegate(pageView) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onDraw(canvas: Canvas) { |
|
|
|
override fun onDraw(canvas: Canvas) { |
|
|
|
|
|
|
|
curPage.onScroll(lastY - touchY) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onAnimStop() { |
|
|
|
override fun onAnimStop() { |
|
|
@ -73,7 +73,6 @@ class ScrollPageDelegate(pageView: PageView) : PageDelegate(pageView) { |
|
|
|
isRunning = true |
|
|
|
isRunning = true |
|
|
|
//设置触摸点 |
|
|
|
//设置触摸点 |
|
|
|
setTouchPoint(e2.x, e2.y) |
|
|
|
setTouchPoint(e2.x, e2.y) |
|
|
|
curPage.onScroll(lastY - touchY) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return isMoved |
|
|
|
return isMoved |
|
|
|
} |
|
|
|
} |
|
|
|