                                             pagesAddedDictionary[index] = index
                                         }
                                         
-                                        lastScrollDirection = "right"
+                                        lastScrollDirection = .Right
                                     }
                                 } else if (lastControllerScrollViewContentOffset < scrollView.contentOffset.x) {
                                     if currentPageIndex != 0 {

    public var delegate : CAPSPageMenuDelegate?
    
    var tapTimer : NSTimer?
    
    // MARK: - View life cycle
    

                                            pagesAddedDictionary[index] = index
                                        }
                                        
                                        lastScrollDirection = .Left
                                    }
                                }
                                
