pull/2274/head
kunfei 2 years ago
parent 163ee32f90
commit 4e8c6a8d7b
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt

@ -461,13 +461,17 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
invalidate()
}
private fun upSelectedStart(x: Float, y: Float, top: Float) = callBack.apply {
private fun upSelectedStart(x: Float, y: Float, top: Float) {
callBack.run {
upSelectedStart(x, y + headerHeight, top + headerHeight)
}
}
private fun upSelectedEnd(x: Float, y: Float) = callBack.apply {
private fun upSelectedEnd(x: Float, y: Float) {
callBack.run {
upSelectedEnd(x, y + headerHeight)
}
}
fun cancelSelect(fromSearchExit: Boolean = false) {
val last = if (callBack.isScroll) 2 else 0

Loading…
Cancel
Save