This commit is contained in:
Horis committed 2022-09-04 22:38:49 +08:00
1 parent 254677e0d7
commit 0f23bf24cc
2 files changed
+3 -3

No files matched your search

@@ -119,7 +119,7 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie
abortAnim()
if (!hasNext()) return
setDirection(PageDirection.NEXT)
readView.setStartPoint(viewWidth.toFloat(), 0f, false)
readView.setStartPoint(viewWidth.toFloat(), 1f, false)
onAnimStart(animationSpeed)
}
@@ -127,7 +127,7 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie
abortAnim()
if (!hasPrev()) return
setDirection(PageDirection.PREV)
readView.setStartPoint(0f, 0f, false)
readView.setStartPoint(0f, viewHeight.toFloat(), false)
onAnimStart(animationSpeed)
}
@@ -189,7 +189,7 @@ class SimulationPageDelegate(readView: ReadView) : HorizontalPageDelegate(readVi
dx = if (mCornerX > 0 && mDirection == PageDirection.NEXT) {
-(viewWidth + touchX)
} else {
(viewWidth - touchX + viewWidth)
viewWidth - touchX
}
dy = if (mCornerY > 0) {
(viewHeight - touchY)