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

            }

            var didEnd = false
            if abs(currentVelocity) < 0.1 {
                strongSelf.nestedDeceleration?.isPaused = true
                strongSelf.nestedDeceleration = nil
                didEnd = true

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

