修复点击屏幕左边到下一页, 点击屏幕右边到上一页的bug

pull/103/head
hingbong 5 years ago
parent 3bf5f95c59
commit e55ddb6ce3
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt

@ -279,13 +279,13 @@ abstract class PageDelegate(protected val pageView: PageView) {
if (!hasNext()) { if (!hasNext()) {
return true return true
} }
setDirection(Direction.PREV) setDirection(Direction.NEXT)
setBitmap() setBitmap()
} else { } else {
if (!hasPrev()) { if (!hasPrev()) {
return true return true
} }
setDirection(Direction.NEXT) setDirection(Direction.PREV)
setBitmap() setBitmap()
} }
setTouchPoint(x, y) setTouchPoint(x, y)

Loading…
Cancel
Save