Snapvalues for Slider

The PR should be pretty much self explaining. I had to make the slider snap to some specific values (0, 30, 45, 60 and 90 in my case) and figuered others might have use for this as well. It will snap to a given value, if the slider knob is within the threshold value.