pull/66/head
kunfei 5 years ago
parent 083113ceec
commit 09243b6faa
  1. 12
      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)

Loading…
Cancel
Save