|
|
|
@ -131,8 +131,21 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val cHeight = if (textPage.height > 0) textPage.height else height |
|
|
|
|
if (offset > 0 && pageOffset > cHeight) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun switchToPageOffset(offset: Int) { |
|
|
|
|
when (offset) { |
|
|
|
|
1 -> { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
-1 -> { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun selectText(x: Float, y: Float): Boolean { |
|
|
|
|
for ((lineIndex, textLine) in textPage.textLines.withIndex()) { |
|
|
|
|