         self.loadingView.isHidden = false
         self.loadingView.startAnimating()
         self.stateLab.text = Bundle.refreshString(key: .headerRefresh)
-        UIView.animate(withDuration: 0.25) { 
-            self.scrollView.contentInset = UIEdgeInsets(top: self.sizeH - self.origiOffsetY, left: 0, bottom: 0, right: 0)
+        UIView.animate(withDuration: 0.25) {
+            self.scrollView.contentInset = UIEdgeInsets(top: self.sizeH, left: 0, bottom: 0, right: 0)
         }
     }
     private func endAnimation() {
         self.status = .pull
-        UIView.animate(withDuration: 0.25, animations: { 
-            self.scrollView.contentInset = UIEdgeInsets( top: -self.origiOffsetY, left: 0, bottom: 0, right: 0)
+        UIView.animate(withDuration: 0.25, animations: {
+            self.scrollView.contentInset = UIEdgeInsets.zero
         }) { (flag) in
             self.imgView.isHidden = false
             self.loadingView.stopAnimating()

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    //MARK: - ***** public Method *****

    public func endRefresh() {
        self.endAnimation()
    }

            switch self.status {
            case .pull:
                self.stateLab.text = Bundle.refreshString(key: .headerIdle)
                UIView.animate(withDuration: 0.25, animations: {
                    self.imgView.transform = CGAffineTransform.identity
                })
                if (origiOffsetY - self.scrollView.contentOffset.y) > self.sizeH {
