修复已知BUG
This commit is contained in:
parent
3c99338cd8
commit
d9d75398f0
@ -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
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
///更新当前索引
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user