         sliderHolderView.layer.cornerRadius = sliderCornerRadious
         draggedView.backgroundColor = defaultSlidingColor
         draggedView.layer.cornerRadius = sliderCornerRadious
-        xEndingPoint = self.view.frame.maxX - thumnailImageView.bounds.height
     }
     
     private func isTapOnThumbnailViewWithPoint(_ point: CGPoint) -> Bool{

    
    private func updateThumbnailViewLeadingPosition(_ x: CGFloat) {
        leadingThumbnailViewConstraint?.constant = x
        layoutIfNeeded()
    }
    
    // MARK: Override methods
    override public func layoutSubviews() {
        super.layoutSubviews()
        if thumnailImageView.bounds.height == 0 {
            xEndingPoint = self.view.frame.maxX - thumnailImageView.bounds.height
            return
        }
    }
    override public func updateConstraints() {
        super.updateConstraints()
        xEndingPoint = self.view.frame.maxX - thumnailImageView.bounds.height
    }
    
    // MARK: UIPanGestureRecognizer

    private var leadingTextLabelConstraint: NSLayoutConstraint?
    private var topSliderConstraint: NSLayoutConstraint?
    private var xPositionInThumbnailView: CGFloat = 0
    private var xEndingPoint: CGFloat {
        get {
            return (self.view.frame.maxX - thumnailImageView.bounds.height)
        }
    }
    private var isFinished: Bool = false
    
    override public init(frame: CGRect) {
