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

@ -461,12 +461,16 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
invalidate() invalidate()
} }
private fun upSelectedStart(x: Float, y: Float, top: Float) = callBack.apply { private fun upSelectedStart(x: Float, y: Float, top: Float) {
upSelectedStart(x, y + headerHeight, top + headerHeight) callBack.run {
upSelectedStart(x, y + headerHeight, top + headerHeight)
}
} }
private fun upSelectedEnd(x: Float, y: Float) = callBack.apply { private fun upSelectedEnd(x: Float, y: Float) {
upSelectedEnd(x, y + headerHeight) callBack.run {
upSelectedEnd(x, y + headerHeight)
}
} }
fun cancelSelect(fromSearchExit: Boolean = false) { fun cancelSelect(fromSearchExit: Boolean = false) {

Loading…
Cancel
Save