macosx: Improve DefaultValueSlider snapping logic