From ab2d3cbe39daebb945875448a9d1ce0a56fb5cf4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 19 Feb 2020 20:02:04 +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 --- .../ui/book/read/page/delegate/SimulationPageDelegate.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 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 106fd0a3e..f2e40c383 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 @@ -489,10 +489,10 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi * 计算拖拽点对应的拖拽脚 */ private fun calcCornerXY(x: Float, y: Float) { - mCornerX = if (x <= viewWidth * 0.5) 0 else viewWidth - mCornerY = if (y <= viewHeight * 0.5) 0 else viewHeight + mCornerX = if (x <= viewWidth / 2.0) 0 else viewWidth + mCornerY = if (y <= viewHeight / 2.0) 0 else viewHeight mIsRtOrLb = (mCornerX == 0 && mCornerY == viewHeight) - || (mCornerX == viewWidth && mCornerY == 0) + || (mCornerY == 0 && mCornerX == viewWidth) } private fun calcPoints() {