This commit is contained in:
Horis 2024-03-03 11:57:02 +08:00
parent 9c27c3b44d
commit 03f8437270

View File

@ -83,11 +83,9 @@ abstract class PageDelegate(protected val readView: ReadView) {
protected fun stopScroll() {
isStarted = false
readView.post {
isMoved = false
isRunning = false
readView.invalidate()
}
readView.postInvalidate()
}
@CallSuper
@ -193,11 +191,13 @@ abstract class PageDelegate(protected val readView: ReadView) {
fun postInvalidate() {
if (isRunning && this is HorizontalPageDelegate) {
readView.post {
if (isRunning) {
setBitmap()
readView.invalidate()
}
}
}
}
open fun onDestroy() {
// run on destroy