feat: 优化代码

pull/117/head
kunfei 5 years ago
parent ed1391b3bb
commit 57659b0026
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/ScrollPageDelegate.kt

@ -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()
} }

Loading…
Cancel
Save