修复已知BUG

This commit is contained in:
澜声世纪 2026-01-07 16:00:25 +08:00
parent 3c99338cd8
commit d9d75398f0
2 changed files with 9 additions and 4 deletions

View File

@ -46,7 +46,7 @@ class NRStarGradeView: UIView {
}
///
var updateOnTouch: Bool = true {
var updateOnTouch: Bool = false {
didSet {
// settings.updateOnTouch = updateOnTouch
// cosmosView.settings = settings
@ -110,6 +110,8 @@ class NRStarGradeView: UIView {
extension NRStarGradeView {
private func nr_setupUI() {
self.isUserInteractionEnabled = updateOnTouch
addSubview(cosmosView)
cosmosView.snp.makeConstraints { make in

View File

@ -13,15 +13,18 @@ extension NRNovelReaderViewController {
func setViewController(displayController: UIViewController, isAbove:Bool, animated:Bool, dismissMenu: Bool = true) {
let direction:UIPageViewController.NavigationDirection = isAbove ? .reverse : .forward
self.pageViewController.setViewControllers([displayController], direction: direction, animated: animated)
self.pageViewController.setViewControllers([displayController], direction: direction, animated: animated) { [weak self] finish in
guard let self = self else { return }
guard finish else { return }
self.pageFinish(displayController)
}
if dismissMenu {
self.viewModel.showAllMenuView(isShow: false)
}
pageFinish(displayController)
// pageFinish(displayController)
}
///