pull/34/head
kunfei 5 years ago
parent 4247a573e0
commit 92de51fdab
  1. 11
      app/src/main/java/io/legado/app/ui/widget/page/PageView.kt

@ -71,14 +71,19 @@ class PageView(context: Context, attrs: AttributeSet) :
PageDelegate.Direction.PREV -> { PageDelegate.Direction.PREV -> {
it.moveToPrevious() it.moveToPrevious()
upContent() upContent()
curPage?.scrollToBottom()
} }
PageDelegate.Direction.NEXT -> { PageDelegate.Direction.NEXT -> {
it.moveToNext() it.moveToNext()
upContent() upContent()
curPage?.scrollTo(0)
} }
else -> return else -> Unit
}
}
if (isScrollDelegate()) {
when (direction) {
PageDelegate.Direction.PREV -> curPage?.scrollToBottom()
PageDelegate.Direction.NEXT -> curPage?.scrollTo(0)
else -> Unit
} }
} }
} }

Loading…
Cancel
Save