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

        
    }
    
    private func scrollToCenterViewContentOffSetWithView(view: UIView) {

        var centerPoint: CGPoint = CGPointMake(view.frame.origin.x - (scrollView.frame.size.width/2) + (view.frame.size.width/2), self.scrollView.contentOffset.y)
        
        self.updateScrollViewContentOffSet(centerPoint)
        
    }

        
        var point: CGPoint = tapGesture.locationInView(self.scrollView)
        
        self.delegate?.pageView(self, didSelectItemAtIndex: self.findCurrentIndex(point))

        
    }
    
    private func findCurrentIndex (point: CGPoint) -> Int {
        
        var index = 0
        
        for var i = 0; i < self.itemsQueueArray.count; i++ {
            
            if CGRectIntersectsRect(CGRectMake(point.x, point.y, 1, 1), self.itemsQueueArray.objectAtIndex(i).frame) {
                index = i
                println("index: \(index)")
            }
            
        }
        
        return index
    }
    
    
