mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user