优化
This commit is contained in:
+5
-1
@@ -119,7 +119,11 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie
|
|||||||
abortAnim()
|
abortAnim()
|
||||||
if (!hasNext()) return
|
if (!hasNext()) return
|
||||||
setDirection(PageDirection.NEXT)
|
setDirection(PageDirection.NEXT)
|
||||||
readView.setStartPoint(viewWidth.toFloat(), 1f, false)
|
val y = when {
|
||||||
|
viewHeight / 2 < startY -> viewHeight.toFloat() * 0.9f
|
||||||
|
else -> 1f
|
||||||
|
}
|
||||||
|
readView.setStartPoint(viewWidth.toFloat() * 0.9f, y, false)
|
||||||
onAnimStart(animationSpeed)
|
onAnimStart(animationSpeed)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user