This commit is contained in:
Horis committed 2024-03-03 11:57:02 +08:00
1 parent 74f061406c
commit 0becbe0cfe
1 file changed
+3 -3
@@ -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