From 09243b6faa44dc4977ad59cebc119f047a0c2063 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 30 Dec 2019 20:57:58 +0800 Subject: [PATCH] up --- .../read/page/delegate/SimulationPageDelegate.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt index d120f7d2c..8d7112056 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt @@ -434,15 +434,15 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi * 计算拖拽点对应的拖拽脚 */ private fun calcCornerXY(x: Float, y: Float) { - if (x <= pageView.width / 2.0) { - mCornerX = 0 + mCornerX = if (x <= pageView.width / 2.0) { + 0 } else { - mCornerX = pageView.width + pageView.width } - if (y <= pageView.height / 2.0) { - mCornerY = 0 + mCornerY = if (y <= pageView.height / 2.0) { + 0 } else { - mCornerY = pageView.height + pageView.height } mIsRT_LB = (mCornerX == 0 && mCornerY == pageView.height || mCornerX == pageView.width && mCornerY == 0)