         
         // TODO(vikrut):
         // * This should probably be merged with convert(contentOffsetToIndex)
-        var itemIndex = Int(floor(point.x / CGFloat(self.configuration.itemWidth)))
-        
-        if itemIndex > self.configuration.values.count - 1 {
-            itemIndex = self.configuration.values.count - 1
+        var itemIndex = Int(floor(point.x / CGFloat(configuration.itemWidth)))
+        
+        if itemIndex > configuration.values.count - 1 {
+            itemIndex = configuration.values.count - 1
         } else if itemIndex < 0 {
             itemIndex = 0
         }

    let values: [Int]
    let defaultSelectedIndex: Int
    
    let sliderHeight: Int
    let sliderWidth: Int
    let itemWidth: Int
    
    public init(values: [Int], defaultSelectedIndex: Int, itemWidth: Int, sliderHeight: Int, sliderWidth: Int) {
        self.values = values
        self.defaultSelectedIndex = defaultSelectedIndex
        self.sliderHeight = sliderHeight
        self.sliderWidth = sliderWidth
        self.itemWidth = itemWidth

    }
    
    private func setupScrollView() {
        addSubview(scrollView)
        
        scrollView.addGestureRecognizer(singleTapGestureRecognizer)
        singleTapGestureRecognizer.addTarget(self, action: #selector(scrollViewWasTapped(_:)))
        
        NSLayoutConstraint(item: scrollView, attribute: .top, relatedBy: .equal, toItem: self, attribute: .top, multiplier: 1, constant: 0).isActive = true
        
