完善阅读器主题与批注界面
This commit is contained in:
+4
-5
@@ -139,11 +139,10 @@ final class RDEPUBReaderPaginationCoordinator {
|
||||
return
|
||||
}
|
||||
let restoreLocation = context.currentVisibleLocation() ?? context.persistenceLocation()
|
||||
if readerView.currentDisplayType == .pageCurl, readerView.currentPage >= 0 {
|
||||
readerView.transitionToPage(pageNum: readerView.currentPage, animated: false)
|
||||
} else {
|
||||
readerView.reloadData()
|
||||
}
|
||||
// pageCurl 不能走 transitionToPage(当前页, animated: false):同页无 fault 会被
|
||||
// 直接跳过,主题/暗色图片等外观变化不会重新 configure 可见页。reloadData
|
||||
// 会失效预加载缓存并重建翻页控制器,保证可见页与相邻页都按新配置重建。
|
||||
readerView.reloadData()
|
||||
if let restoreLocation {
|
||||
_ = context.restoreReadingLocation(restoreLocation)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user