|
|
|
@ -242,7 +242,9 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
|
/** |
|
|
|
|
* 长按选择 |
|
|
|
|
*/ |
|
|
|
|
private fun onLongPress() = with(curPage.textPage) { |
|
|
|
|
private fun onLongPress() { |
|
|
|
|
kotlin.runCatching { |
|
|
|
|
with(curPage.textPage) { |
|
|
|
|
curPage.selectText(startX, startY) { relativePage, lineIndex, charIndex -> |
|
|
|
|
isTextSelected = true |
|
|
|
|
firstRelativePage = relativePage |
|
|
|
@ -342,6 +344,8 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
|
curPage.selectEndMoveIndex(firstRelativePage, lineEnd, end) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 单击 |
|
|
|
|