         lastContentOffset = scrollView.contentOffset
         leftSidePageIndex = Int(scrollView.contentOffset.x / scrollView.bounds.width)
         
-        if isTracking {
+        if isExplicityScrolling {
             let leftSideContentOffset = CGFloat(leftSidePageIndex) * scrollView.bounds.width
             let percent = (scrollView.contentOffset.x - leftSideContentOffset) / scrollView.bounds.width
             let normalizedPercent = min(max(0, percent), 1)

    }
    
    public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
        isTracking = false
        loadPagesIfNeeded()
    }
    
    public func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        if !decelerate {
            isTracking = false
            loadPagesIfNeeded()
        }
    }
    
    public func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView) {
        isProgramaticallyScrolling = false
    }
    
    fileprivate func loadPagesIfNeeded(page: Int? = nil) {

    
    fileprivate var lastContentOffset = CGPoint.zero
    fileprivate var leftSidePageIndex = 0
    fileprivate var isExplicityScrolling = false
    
    fileprivate let scrollView: UIScrollView = {
        let scrollView = UIScrollView()
