             guard let refreshView = self.refreshView else {
                 return
             }
-            
+
             refreshView.pullToRefreshAnimationDidStart(refreshView, direction: self.direction)
             self.action(self.scrollView)
         }

            }

            if scrollView.isDragging {
                if bottfomOffset > 0 && bottfomOffset < viewHeight {
                    let process = bottfomOffset / viewHeight
                    progressAnimating(process)
                }
            } else {
                if bottfomOffset >= viewHeight {

                return
            }

            let offset = scrollView.contentOffset.y - appropriateContentInset.bottom
            let bottfomOffset = containerHeight + offset - contentHeight

            // Starts animation automatically and remember this location to prevent infinite animation
