|
|
@ -10,7 +10,6 @@ import android.util.AttributeSet |
|
|
|
import android.view.MotionEvent |
|
|
|
import android.view.MotionEvent |
|
|
|
import android.view.ViewConfiguration |
|
|
|
import android.view.ViewConfiguration |
|
|
|
import android.widget.FrameLayout |
|
|
|
import android.widget.FrameLayout |
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
|
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.service.help.ReadBook |
|
|
|
import io.legado.app.service.help.ReadBook |
|
|
@ -249,7 +248,7 @@ class PageView(context: Context, attrs: AttributeSet) : |
|
|
|
callBack.clickCenter() |
|
|
|
callBack.clickCenter() |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (ReadBookConfig.clickTurnPage) { |
|
|
|
} else if (ReadBookConfig.clickTurnPage) { |
|
|
|
if (startX > width / 2 || AppConfig.clickAllNext) { |
|
|
|
if (startX > width / 2 || ReadBookConfig.clickAllNext) { |
|
|
|
pageDelegate?.nextPageByAnim(defaultAnimationSpeed) |
|
|
|
pageDelegate?.nextPageByAnim(defaultAnimationSpeed) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pageDelegate?.prevPageByAnim(defaultAnimationSpeed) |
|
|
|
pageDelegate?.prevPageByAnim(defaultAnimationSpeed) |
|
|
|