From cad97612d4ff0e783518af42face62a34b01b35f Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Mar 2020 20:38:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/book/read/page/delegate/CoverPageDelegate.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {