From 2f6ccce7552ee3e6bff3316e9d784e581524fae0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 23 Mar 2020 21:59:13 +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 --- .../java/io/legado/app/ui/book/read/page/entities/TextPage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt b/app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt index 9613947c7..2fcf2f7e2 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt @@ -20,7 +20,7 @@ data class TextPage( fun upLinesPosition() = ChapterProvider.apply { if (textLines.size <= 1) return@apply - if (visibleHeight - height > with(textLines.last()) { lineBottom - lineTop }) return@apply + if (visibleHeight - height >= with(textLines.last()) { lineBottom - lineTop }) return@apply val surplus = (visibleBottom - textLines.last().lineBottom) if (surplus == 0f) return@apply height += surplus