 import UIKit
 
-class VSlider:UIView
+class VSlider:UIView, UIGestureRecognizerDelegate
 {
     private weak var viewBase:UIView!
     private weak var viewBar:VSliderBar!

        self.percentUsed = percentUsed
        layoutSlider()
    }
}

        let gesture:UIPanGestureRecognizer = UIPanGestureRecognizer(
            target:self,
            action:#selector(actionPanning(sender:)))
        gesture.delegate = self
        
        addGestureRecognizer(gesture)
    }
