                              completion: PageTransitionCompletion? = nil) {
         
         // guard against any current transition operation
-        guard self.isTransitioning == false else { return }
+        guard self.isScrollingAnimated == false else { return }
         guard self.isDragging == false else { return }
         
         let rawIndex = self.indexValue(forPageIndex: index)

        }
    }
    
    /// Whether the page view controller is currently transitioning between pages.
    private(set) var isTransitioning = false {
        didSet {
            self.isUserInteractionEnabled = !self.isTransitioning
        }
    }
    

                        }
                    }
                    completion?(viewController, animated, finished)
                    self.isScrollingAnimated = false
            })
            
        } else {
