 		
 		var scrolledToTop = false
 		
-		if scrollView.contentInset.top == -scrollView.contentOffset.y {
+		if scrollViewContentInset.top == -scrollView.contentOffset.y {
 			scrolledToTop = true
 		}
 		

	}
	
	fileprivate func updateScrollContentInsetTop(_ top: CGFloat) {
        let contentInset = UIEdgeInsets(top: top, left: scrollView.contentInset.top, bottom: scrollView.contentInset.left, right: scrollView.contentInset.right)
        if delegate?.hidingNavigationBarManagerShouldUpdateScrollViewInsets(self, insets: contentInset) == false {
            return
        }
        
        if viewController.automaticallyAdjustsScrollViewInsets {
            var contentInset = scrollView.contentInset
            contentInset.top = top
            scrollView.contentInset = contentInset
        }

			var newContentOffset = scrollView.contentOffset
			newContentOffset.y -= deltaY
			
			let contentInset = scrollViewContentInset
			let top = contentInset.top + deltaY
			
			UIView.animate(withDuration: 0.2, animations: {
