pull/2250/head
kunfei 2 years ago
parent 6f7581a254
commit 93e0cb7eea
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt

@ -283,6 +283,14 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
}
}
/**
* 单击
* @return true:已处理, false:未处理
*/
fun click(x: Float, y: Float): Boolean {
return false
}
/**
* 选择文字
*/

@ -313,7 +313,7 @@ class PageView(context: Context) : FrameLayout(context) {
* @return true:已处理, false:未处理
*/
fun onClick(x: Float, y: Float): Boolean {
return false
return binding.contentTextView.click(x, y - headerHeight)
}
/**

Loading…
Cancel
Save