         
     }
     
+    private func getLeftCenter(view: UIView) -> CGPoint {
+        
+        var leftPoint: CGPoint = CGPointMake(view.frame.origin.x - self.scrollView.frame.size.width + view.frame.size.width + self.distanceBetweenViews, self.scrollView.contentOffset.y)
+        return leftPoint
+        
+    }
+    
     private func scrollToLeftViewContentOffSetWithView(view: UIView) {
         
-        var leftPoint: CGPoint = CGPointMake(view.frame.origin.x - self.scrollView.frame.size.width + view.frame.size.width + self.distanceBetweenViews, self.scrollView.contentOffset.y)
-        
+        var leftPoint = self.getLeftCenter(view)
         self.updateScrollViewContentOffSet(leftPoint)
         
     }
     
     private func updateScrollViewContentOffSet(point: CGPoint) {
+        
+        self.findCurrentIndex(point)
         
         UIView.animateWithDuration(0.5, animations: { () -> Void in
             self.scrollView.setContentOffset(point, animated: false)

        
        var point: CGPoint = tapGesture.locationInView(self.scrollView)
        
        for var i = 0; i < self.itemsQueueArray.count; i++ {
            
            if CGRectIntersectsRect(CGRectMake(point.x, point.y, 1, 1), self.itemsQueueArray.objectAtIndex(i).frame) {
                println("index: \(i)")
                self.delegate?.pageView(self, didSelectItemAtIndex: i)
                return
            }
            
        }
        
        
    }
    
    

    var itemsQueueArray: NSMutableArray = NSMutableArray()
    var alignment: Alignment = .Center
    var distanceBetweenViews: CGFloat = 20
    var currentIndex = 0
    
    
    // MARK: - Private Properties
