feat: 优化代码

pull/133/head
kunfei 5 years ago
parent f1657637e2
commit c44ab4817f
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/SlidePageDelegate.kt

@ -47,8 +47,8 @@ class SlidePageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) {
curPage.translationX = offsetX
prevPage.translationX = offsetX - viewWidth + 1f
} else if (mDirection == Direction.NEXT) {
nextPage.translationX = offsetX + viewWidth - 1f
curPage.translationX = offsetX
nextPage.translationX = offsetX + viewWidth - 1f
}
}

Loading…
Cancel
Save