diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/CoverPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/CoverPageDelegate.kt index 7e73700e9..2f4b2c404 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/CoverPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/CoverPageDelegate.kt @@ -34,10 +34,11 @@ class CoverPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) { if (!isRunning) return if (mDirection == Direction.PREV) { prevPage.translationX = offsetX - viewWidth + addShadow(distanceX.toInt(), canvas) } else if (mDirection == Direction.NEXT) { curPage.translationX = offsetX + addShadow(distanceX.toInt(), canvas) } - addShadow(distanceX.toInt(), canvas) } private fun addShadow(left: Int, canvas: Canvas) {