|
|
@ -191,11 +191,13 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
textPage = pageFactory.curData.textPage |
|
|
|
textPage = pageFactory.curData.textPage |
|
|
|
pageOffset -= textPage.height.toInt() |
|
|
|
pageOffset -= textPage.height.toInt() |
|
|
|
upView?.invoke(textPage) |
|
|
|
upView?.invoke(textPage) |
|
|
|
|
|
|
|
contentDescription = textPage.text |
|
|
|
} else if (pageOffset < -textPage.height) { |
|
|
|
} else if (pageOffset < -textPage.height) { |
|
|
|
pageOffset += textPage.height.toInt() |
|
|
|
pageOffset += textPage.height.toInt() |
|
|
|
pageFactory.moveToNext(false) |
|
|
|
pageFactory.moveToNext(false) |
|
|
|
textPage = pageFactory.curData.textPage |
|
|
|
textPage = pageFactory.curData.textPage |
|
|
|
upView?.invoke(textPage) |
|
|
|
upView?.invoke(textPage) |
|
|
|
|
|
|
|
contentDescription = textPage.text |
|
|
|
} |
|
|
|
} |
|
|
|
invalidate() |
|
|
|
invalidate() |
|
|
|
} |
|
|
|
} |
|
|
|