feat: 优化代码

pull/111/head 3.20.022217
kunfei 5 years ago
parent 9b128ab5f4
commit 974a2a3b2f
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/ScrollPageDelegate.kt

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

Loading…
Cancel
Save