Slider:SetStepsPerPage
Jump to navigation
Jump to search
Controls slider behavior when the user clicks within the slider's tracking area.
Slider:SetStepsPerPage(stepsPerPage)
Arguments
- stepsPerPage
- number - Magnitude of the slider value change, or 0 to disable paging behavior.
Details
- This function controls the Slider's behavior when the user clicks within its tracking area (to either side of the Slider's thumb).
- By default (or if
steps < 1
), paging behavior is disabled. In this case, the slider's value will be changed based on the location of the click, and may assume fractional values. - If
steps >= 1
, the Slider's value will be changed by exactlySlider:GetValueStep()*math.floor(steps)
in the direction of the click.
Patch history
Patch 5.4.0 (2013-09-10): Added.