diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 169b184ab..1c37230ba 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -394,12 +394,6 @@ object ChapterProvider { durY = 0f } - // 图片居中:调整 X 坐标 - if (width < visibleWidth) { - val adjustWidth = (visibleWidth - width) / 2f - absStartX += adjustWidth.toInt() // 将起始 X 坐标移至居中位置 - } - // 图片竖直方向居中:调整 Y 坐标 if (height < visibleHeight) { val adjustHeight = (visibleHeight - height) / 2f diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt index 7e1f57208..ddb8ebbf3 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt @@ -366,12 +366,6 @@ class TextChapterLayout( durY = 0f } - // 图片居中:调整 X 坐标 - if (width < visibleWidth) { - val adjustWidth = (visibleWidth - width) / 2f - absStartX += adjustWidth.toInt() // 将起始 X 坐标移至居中位置 - } - // 图片竖直方向居中:调整 Y 坐标 if (height < visibleHeight) { val adjustHeight = (visibleHeight - height) / 2f