Slider: use mouse to move the slider (without click)

I want the slider to move when the mouse is over it (but no click), and then enter the next routine when clicking the mouse. Is there any possible code? Thank you for your time!