         
         thumbView.sizeToFit()
         thumbView.center = bounds.center
+        
+        adjustScrollViewOffset()
     }
     
     // MARK: - RotationSliderView

        let value = minimumValue + (maximumValue - minimumValue) * Float(percentage)
        
        onSliderValueChange?(value)
        debugPrint("slider value = \(value)")
    }
    
    // Это отключает deceleration у scroll view
    func scrollViewWillBeginDecelerating(scrollView: UIScrollView) {
        scrollView.setContentOffset(scrollView.contentOffset, animated: true)
    }
}


    
    private var minimumValue: Float = 0
    private var maximumValue: Float = 1
    private var currentValue: Float = 0
    
    // MARK: - UIView
    
