             lastPanTranslation = 0.0
             isFastScrollInProgress = true
         case .changed:
-            let insets = scrollView.contentInset.top + scrollView.contentInset.bottom
+            let insets = topBottomInsets
             let deltaY = gesture.translation(in: scrollView).y - lastPanTranslation
             lastPanTranslation = gesture.translation(in: scrollView).y
             let scrollableHeight = scrollView.bounds.height - scrollBarView.bounds.height - insets

    private var fadeOutWorkItem: DispatchWorkItem?
    private var lastPanTranslation: CGFloat = 0.0
    private var isScrollBarActive = false
    
    // MARK: - Lifecycle
    

        scrollBarView.alpha = 1.0
        let rightOffset = dataSource?.rightOffset?(for: scrollBarView, for: self) ?? attributes.rightOffset
        let x = scrollView.bounds.maxX - scrollBarView.bounds.width - rightOffset
        let insets = topBottomInsets
        let scrollableHeight = scrollView.bounds.height - scrollBarView.bounds.height - insets
        let offsetWithInsets = offset + insets
        let progress = offsetWithInsets / (scrollView.contentSize.height - scrollView.bounds.height + insets)
