 
     }
     
-    func scrollViewWillEndDragging(scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {
-                
-            
-    }
-    
-    
-    func scrollViewWillBeginDecelerating(scrollView: UIScrollView) {
-        
-    }
-    
-    func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
-
-        switch self.alignment {
-            
-        case .Right:
-            self.scrollToRightView()
-            break
-            
-        case .Center:
-            self.scrollToCenterView()
-            break
-            
-        case .Left:
-            self.scrollToLeftView()
-            break
-            
-        }
-
-    }
-    
 
 }

    }
    
    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        self.delegate?.pageViewDidEndDragging(self, willDecelerate: true)
        
        self.delegate?.pageViewWillBeginDecelarating(self)
        switch self.alignment {
            
        case .Right:

    private func scrollToCenterViewContentOffSetWithView(view: UIView) {

        var centerPoint = self.getCenterPoint(view)
        self.currentIndexItem = self.itemsQueueArray.indexOfObject(view)
        self.updateScrollViewContentOffSet(centerPoint)
        
    }
