     
     private var screenBounds: CGRect!
     private var pointNow = CGPointZero
-    private let pageIndicatorHeight = 20 as CGFloat
+    private let pageIndicatorHeight: CGFloat = 20
+    private var pageOffsetRate: CGFloat = 0
     
     // MARK: - View life cicle
     

        pagesForCurrentPage(currentPage)
        
        scrollScrubber.setSliderVal()
    }
    
    override func willAnimateRotationToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation, duration: NSTimeInterval) {

            self.pageIndicatorView.frame = pageIndicatorFrame
            self.pageIndicatorView.reloadView(updateShadow: true)
            
            // Adjust scroll scrubber slider
            self.scrollScrubber.slider.frame = scrollScrubberFrame
            
            // Adjust collectionView
