修复滚动模式下的自动翻页速度与指定时间差异过大 (#5139)
This commit is contained in:
@@ -80,7 +80,10 @@ class AutoPager(private val readView: ReadView) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (readView.isScroll) {
|
if (readView.isScroll) {
|
||||||
if (!isPausing) readView.curPage.scroll(-scrollOffset)
|
if (!isPausing) {
|
||||||
|
readView.curPage.scroll(-scrollOffset)
|
||||||
|
scrollOffset = 0
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
val bottom = progress
|
val bottom = progress
|
||||||
val width = readView.width
|
val width = readView.width
|
||||||
|
|||||||
Reference in New Issue
Block a user