优化代码

pull/352/head
gedoor 4 years ago
parent a3054307f4
commit 39d3c7fb68
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/ScrollPageDelegate.kt

@ -80,11 +80,13 @@ class ScrollPageDelegate(pageView: PageView) : PageDelegate(pageView) {
override fun nextPageByAnim(animationSpeed: Int) {
abort()
setStartPoint(0f, 0f, false)
startScroll(0, 0, 0, -ChapterProvider.visibleHeight, animationSpeed)
}
override fun prevPageByAnim(animationSpeed: Int) {
abort()
setStartPoint(0f, 0f, false)
startScroll(0, 0, 0, ChapterProvider.visibleHeight, animationSpeed)
}
}
Loading…
Cancel
Save