     }()
 
     var isNestedScrollEnabled: Bool {
-        outerScrollView.contentOffset.y >= (300 - statusBarHeight - 44)
+        outerScrollView.contentOffset.y >= nestedScrollView.frame.minY
     }
 
     var isOuterEnable: Bool {

        outerScrollView.backgroundColor = .systemRed
        outerScrollView.contentInsetAdjustmentBehavior = .never
        outerScrollView.delegate = self
        return outerScrollView
    }()


        nestedScrollView.delaysContentTouches = false
        nestedScrollView.contentInsetAdjustmentBehavior = .never
        nestedScrollView.addSubview(blockView)
        nestedScrollView.showsVerticalScrollIndicator = false
        return nestedScrollView
    }()

