This commit is contained in:
kunfei
2022-08-19 19:42:26 +08:00
parent 2be2ccbe9c
commit 35f50f5957
2 changed files with 5 additions and 1 deletions
@@ -506,6 +506,9 @@ class ReadView(context: Context, attrs: AttributeSet) :
callBack.screenOffTimerStart()
}
/**
* 更新滑动距离
*/
fun upPageSlopSquare() {
val pageTouchSlop = AppConfig.pageTouchSlop
this.pageSlopSquare = if (pageTouchSlop == 0) slopSquare else pageTouchSlop