Constrain Mouse on Slider Drag?

I have created the slider from the tutorial on this site. I was wondering if it is possible to constrain the mouse to the dragger object while the user is sliding it across the screen.

Cheers.