     
     private func containingScrollViewDidEndDragging(scrollView: UIScrollView) {
         let actualOffset: CGFloat = scrollView.contentOffset.y
-        if !self.refreshing && -actualOffset > 60 {
+        if !self.refreshing && -actualOffset > self.height {
             self.refresh()
         }
     }

    }
    
    private func handleScrollingOnAnimationView(animationView: UIView, withPullDistance pullDistance: CGFloat, withPullRatio pullRatio: CGFloat, withPullVelocity pullVelocity: CGFloat) {
        if pullDistance < 60 {
            self.circleView.alpha = pullDistance / 60
            self.progressLayer.strokeEnd = pullDistance / 60 * 0.9
        } else {
            self.circleView.alpha = 1
            self.progressLayer.strokeEnd = 0.9

    }
    
    public func beginRefreshing() {
        self.refreshing = true
        self.startRefreshing()
    }
    
    public func endRefreshing() {
